Skip to content

Commit

Permalink
Clean up fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbrain-za committed Nov 12, 2023
1 parent 9743332 commit 176bd2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/helpers/fetchers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ impl Requestor {
if self.retry_count > 0 {
log::debug!("Retrying auth");
self.retry_count -= 1;
self.promise = None;
self.token_refresh_promise = refresh::submit_refresh();
RequestStatus::InProgress
} else {
Expand All @@ -143,6 +142,12 @@ impl Requestor {
};
self.state_has_changed = true;
}
match res {
RequestStatus::InProgress => {}
_ => {
self.promise = None;
}
}
res
}

Expand Down

0 comments on commit 176bd2c

Please sign in to comment.