Skip to content

Commit ca23058

Browse files
authored
Merge pull request #137 from driftluo/change-std-sleep-to-tokio
chore: change std sleep to tokio sleep
2 parents 6e262f1 + 3a52365 commit ca23058

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/traits/default_impls.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::collections::HashMap;
22
use std::sync::Arc;
3-
use std::thread;
43
use std::time::Duration;
54

65
use anyhow::anyhow;
@@ -302,7 +301,7 @@ impl DefaultCellCollector {
302301
if tip_number.value()
303302
> block_number.value() + self.acceptable_indexer_leftbehind
304303
{
305-
thread::sleep(Duration::from_millis(50));
304+
tokio::time::sleep(Duration::from_millis(50)).await;
306305
} else {
307306
return Ok(());
308307
}

0 commit comments

Comments
 (0)