Skip to content

Commit

Permalink
reduce restart interval
Browse files Browse the repository at this point in the history
  • Loading branch information
b-yap committed Jul 11, 2024
1 parent 2f76b32 commit dc9dc3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions clients/vault/src/oracle/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ impl OracleAgent {

timeout(Duration::from_secs(timeout_seconds), async move {
loop {
tracing::info!("get_proof(): attempt to build proof for slot {slot}");
let stellar_sender = sender.clone();
let collector = collector.read().await;
match collector.build_proof(slot, &stellar_sender).await {
Expand Down
4 changes: 3 additions & 1 deletion clients/vault/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub const AUTHORS: &str = env!("CARGO_PKG_AUTHORS");
pub const NAME: &str = env!("CARGO_PKG_NAME");
pub const ABOUT: &str = env!("CARGO_PKG_DESCRIPTION");

const RESTART_INTERVAL: Duration = Duration::from_secs(10800); // restart every 3 hours
const RESTART_INTERVAL: Duration = Duration::from_secs(7200); // restart every 3 hours

#[derive(Clone, Debug)]
pub struct VaultData {
Expand Down Expand Up @@ -263,6 +263,8 @@ async fn active_block_listener(
|err| tracing::error!("Error (UpdateActiveBlockEvent): {}", err.to_string()),
)
.await?;

tracing::info!("active_block_listener(): ended");
Ok(())
}

Expand Down

0 comments on commit dc9dc3b

Please sign in to comment.