Skip to content

Commit

Permalink
Use same app_id type accross configs
Browse files Browse the repository at this point in the history
  • Loading branch information
aterentic-ethernal committed Sep 4, 2024
1 parent 5de0e77 commit 1cf94d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl From<&RuntimeConfig> for SyncClientConfig {
SyncClientConfig {
confidence: val.confidence,
disable_rpc: val.disable_rpc,
is_last_step: val.app_id.is_none(),
app_id: val.app_id,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/sync_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub async fn run(
}
}

if cfg.is_last_step {
if cfg.app_id.is_none() {
client.store_is_synced(true);
}
}
Expand Down
4 changes: 2 additions & 2 deletions core/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,15 +381,15 @@ impl Delay {
pub struct SyncClientConfig {
pub confidence: f64,
pub disable_rpc: bool,
pub is_last_step: bool,
pub app_id: Option<u32>,
}

impl Default for SyncClientConfig {
fn default() -> Self {
Self {
confidence: 99.9,
disable_rpc: false,
is_last_step: true,
app_id: None,
}
}
}
Expand Down

0 comments on commit 1cf94d7

Please sign in to comment.