Skip to content

Commit

Permalink
payment: fix sleep typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kamirr committed Oct 19, 2023
1 parent e3e66c4 commit 771b606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/payment/src/payment_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ lazy_static::lazy_static! {

pub fn send_sync_notifs_job(db: DbExecutor) {
let pool = LocalPoolHandle::new(1);
let default_sleep = Duration::from_secs(30);
let default_sleep = Duration::from_secs(3600);

pool.spawn_pinned(move || async move {
loop {
Expand Down Expand Up @@ -201,7 +201,7 @@ async fn send_sync_requests_impl(db: DbExecutor) -> anyhow::Result<()> {
}

for peer_id in peers {
tokio::time::sleep(std::time::Duration::from_secs(3600)).await;
tokio::time::sleep(std::time::Duration::from_secs(30)).await;

log::debug!("Sending PaymentSyncRequest to [{peer_id}]");
ya_net::from(node_id)
Expand Down

0 comments on commit 771b606

Please sign in to comment.