Skip to content

Commit

Permalink
fixed some typoe
Browse files Browse the repository at this point in the history
Signed-off-by: axfor <aixiaoxiang2009@hotmail.com>
  • Loading branch information
axfor committed Mar 18, 2023
1 parent 28dc496 commit 1556879
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/ingester/app/consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ func (c *Consumer) Start() {
c.cancel = cancel
c.doneWg.Add(1)

var firstStart sync.WaitGroup
firstStart.Add(1)
var fristStart sync.WaitGroup
fristStart.Add(1)
go func() {
firstStart.Done()
fristStart.Done()
defer c.doneWg.Done()
for {
select {
Expand All @@ -96,7 +96,7 @@ func (c *Consumer) Start() {
}
}
}()
firstStart.Wait()
fristStart.Wait()
}

// Close closes the Consumer and underlying sarama consumer
Expand Down

0 comments on commit 1556879

Please sign in to comment.