We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f46eb04 commit e3af81dCopy full SHA for e3af81d
bin/submit_transaction.rs
@@ -28,7 +28,7 @@ struct Config {
28
kms_key_id: LocalOrAwsConfig,
29
#[from_env(var = "RECIPIENT_ADDRESS", desc = "Recipient address")]
30
recipient_address: Address,
31
- #[from_env(var = "SLEEP_TIME", desc = "Time to sleep between transactions")]
+ #[from_env(var = "SLEEP_TIME", desc = "Time to sleep between transactions, in ms")]
32
sleep_time: u64,
33
}
34
@@ -65,7 +65,7 @@ async fn main() {
65
send_transaction(&provider, recipient_address).await;
66
67
debug!(sleep_time, "sleeping");
68
- tokio::time::sleep(tokio::time::Duration::from_secs(sleep_time)).await;
+ tokio::time::sleep(tokio::time::Duration::from_millis(sleep_time)).await;
69
70
71
0 commit comments