Skip to content

Commit c406084

Browse files
committed
remove sleep
1 parent 0c97849 commit c406084

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pallets/drand/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -552,12 +552,7 @@ impl<T: Config> Pallet<T> {
552552

553553
pending_requests = next_iteration_requests;
554554

555-
if still_pending {
556-
sp_io::offchain::sleep_until(
557-
sp_io::offchain::timestamp()
558-
.add(sp_runtime::offchain::Duration::from_millis(10)),
559-
);
560-
} else {
555+
if !still_pending {
561556
break;
562557
}
563558
}

0 commit comments

Comments
 (0)