Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <[email protected]>
  • Loading branch information
pingyu committed Nov 7, 2023
1 parent 7ba5f55 commit 1bc7201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pd/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ mod test {
}

async fn retry_ok(client: Arc<MockClient>) -> Result<()> {
retry_mut!(client, "test", |_c| ready(Ok::<_, Error>(())))
retry!(client, "test", |_c| ready(Ok::<_, Error>(())))
}

executor::block_on(async {
Expand Down Expand Up @@ -342,7 +342,7 @@ mod test {
client: Arc<MockClient>,
max_retries: Arc<AtomicUsize>,
) -> Result<()> {
retry_mut!(client, "test", |c| {
retry!(client, "test", |c| {
c.fetch_add(1, std::sync::atomic::Ordering::SeqCst);

let max_retries = max_retries.fetch_sub(1, Ordering::SeqCst) - 1;
Expand Down

0 comments on commit 1bc7201

Please sign in to comment.