Skip to content

Commit

Permalink
Merge pull request #231 from NordSecurity/LLT-4451_flush_moose_events
Browse files Browse the repository at this point in the history
Flush libmoose changes upon sending heartbeat event
  • Loading branch information
Jauler authored Dec 1, 2023
2 parents a3722de + 5223b1e commit 2fe8fe7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/telio-lana/src/event_log_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ pub mod moose {
}
}

/// Mocked moose function
pub fn flush_changes() -> std::result::Result<Result, Error> {
Ok(Result::Success)
}

/// Mocked moose function.
pub fn fetch_specific_context(name: &str) -> std::result::Result<String, Error> {
match super::event_log("fetch_specific_context", Some(vec![name])) {
Expand Down
2 changes: 2 additions & 0 deletions crates/telio-nurse/src/nurse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ impl State {
qos_data.rtt_loss,
qos_data.tx
);

let _ = lana!(flush_changes);
}

fn meshnet_id() -> Uuid {
Expand Down

0 comments on commit 2fe8fe7

Please sign in to comment.