Skip to content

Commit

Permalink
Add TODO comment as a follow-up to #9
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jan 31, 2024
1 parent 6192bbd commit 44fc813
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ async fn retry_get_historical_price(
return price;
}
println!("Retry get_historical_price");
//empirically observed cool down period is ~14s
// Empirically observed cool down period is ~14s
//
// TODO: Move this retry logic into `coin_gecko::get_historical_price()`, and respect the
// HTTP `Retry-After:` response header from Coin Gecko
sleep(Duration::from_secs(5));
}
token.get_historical_price(rpc_client, block_date).await
Expand Down

0 comments on commit 44fc813

Please sign in to comment.