Skip to content

Commit

Permalink
fix push data
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Apr 1, 2023
1 parent c7c694e commit 34ad6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pushgw/writer/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ func (ws *WritersType) StartConsumer(identQueue *IdentQueue) {
for {
select {
case <-identQueue.closeCh:
logger.Infof("write queue:%v closed", identQueue)
return
default:
ws.sema.Acquire()
series := identQueue.list.PopBack(ws.pushgw.WriterOpt.QueuePopSize)
if len(series) == 0 {
time.Sleep(time.Millisecond * 400)
Expand Down

0 comments on commit 34ad6bc

Please sign in to comment.