瀏覽代碼

Warn on calling retry

Santiago Pastorino 4 年之前
父節點
當前提交
79dc77d8eb
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/github.rs

+ 6 - 0
src/github.rs

@@ -88,6 +88,12 @@ impl GithubClient {
             pub source_import: RateLimit,
         }
 
+        log::warn!(
+            "Retrying after {} seconds, remaining attepts {}",
+            sleep.as_secs(),
+            remaining_attempts,
+        );
+
         async move {
             tokio::time::delay_for(sleep).await;