Skip to content

Commit

Permalink
fix: fix retry strategy naming (#1769)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 authored Apr 11, 2022
1 parent 0d867ec commit a933494
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/meta/src/barrier/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ where
}

debug!("recovery start!");
let retry_category = Self::get_retry_strategy();
let (new_epoch, responses) = tokio_retry::Retry::spawn(retry_category, || async {
let retry_strategy = Self::get_retry_strategy();
let (new_epoch, responses) = tokio_retry::Retry::spawn(retry_strategy, || async {
let info = self.resolve_actor_info(None).await;
let mut new_epoch = self.env.epoch_generator().generate();

Expand Down Expand Up @@ -141,8 +141,8 @@ where
/// it.
async fn clean_up(&self, prev_command: Command) {
if let Some(table_id) = prev_command.creating_table_id() {
let retry_category = Self::get_retry_strategy();
tokio_retry::Retry::spawn(retry_category, || async {
let retry_strategy = Self::get_retry_strategy();
tokio_retry::Retry::spawn(retry_strategy, || async {
self.fragment_manager.drop_table_fragments(&table_id).await
})
.await
Expand Down

0 comments on commit a933494

Please sign in to comment.