Skip to content

Commit

Permalink
use std::time for macro
Browse files Browse the repository at this point in the history
may not be imported where the macro is used
  • Loading branch information
michaeldjeffrey committed Dec 20, 2024
1 parent 0cf02b8 commit c68e017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions solana/src/burn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ use solana_sdk::{
transaction::Transaction,
};
use std::{collections::HashMap, str::FromStr};
use std::{
sync::Arc,
time::{Duration, SystemTime},
};
use std::{sync::Arc, time::SystemTime};
use tokio::sync::Mutex;

#[async_trait]
Expand Down
2 changes: 1 addition & 1 deletion solana/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ macro_rules! send_with_retry {
Err(err) => {
if attempt < 5 {
attempt += 1;
tokio::time::sleep(Duration::from_secs(attempt)).await;
tokio::time::sleep(std::time::Duration::from_secs(attempt)).await;
continue;
} else {
break Err(err);
Expand Down

0 comments on commit c68e017

Please sign in to comment.