sleep longer when the service has no tasks to process (#78)

This commit is contained in:
bmc-msft 2020-10-02 00:41:22 -04:00 committed by GitHub
parent aa48469ad0
commit 062ff53e2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,7 +254,7 @@ impl Agent {
}
async fn sleep(&mut self) {
let delay = time::Duration::from_secs(2);
let delay = time::Duration::from_secs(30);
time::delay_for(delay).await;
}