Skip to content

Commit

Permalink
chore: apply suggestions from CR
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Dec 28, 2023
1 parent 4f95fe3 commit 8a9c6b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/meta/src/wal/kafka/topic_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl TopicManager {
.iter()
.map(|i| async {
self.try_create_topic(&topics[*i], &control_client).await?;
self.try_create_noop_record(&topics[*i], &client).await?;
self.try_append_noop_record(&topics[*i], &client).await?;
Ok(())
})
.collect::<Vec<_>>();
Expand All @@ -154,7 +154,7 @@ impl TopicManager {
.collect()
}

async fn try_create_noop_record(&self, topic: &Topic, client: &Client) -> Result<()> {
async fn try_append_noop_record(&self, topic: &Topic, client: &Client) -> Result<()> {
let partition_client = client
.partition_client(topic, DEFAULT_PARTITION, UnknownTopicHandling::Retry)
.await
Expand Down

0 comments on commit 8a9c6b3

Please sign in to comment.