Skip to content

Commit

Permalink
Adjust sync alert sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Sep 29, 2024
1 parent cdb58a9 commit d8f6d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/sync_elements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub async fn run(Params(args): Params<Args>, pool: Data<Arc<Pool>>) -> Result<Me
let elements = overpass::query_bitcoin_merchants().await?;
let mut conn = db::open_connection()?;
let res = sync::merge_overpass_elements(elements, &mut conn).await?;
if res.elements_created + res.elements_updated + res.elements_deleted > 2 {
if res.elements_created + res.elements_updated + res.elements_deleted > 3 {
let log_message = format!(
"{} ran a sync with high number of changes (created: {}, updated: {}, deleted: {})",
token.owner, res.elements_created, res.elements_updated, res.elements_deleted,
Expand Down

0 comments on commit d8f6d8d

Please sign in to comment.