Skip to content

Commit

Permalink
bugfix: call Add() for WaitGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
suxb201 committed Oct 10, 2022
1 parent 3eb22dc commit d1376f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/writer/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func NewRedisWriter(address string, username string, password string, isTls bool
log.Infof("redisWriter connected to redis successful. address=[%s]", address)
rw.cmdBuffer = new(bytes.Buffer)
rw.chWaitReply = make(chan *entry.Entry, config.Config.Advanced.PipelineCountLimit)
rw.chWg.Add(1)
go rw.flushInterval()
return rw
}
Expand Down

0 comments on commit d1376f6

Please sign in to comment.