We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 238fb46 commit 7d452fcCopy full SHA for 7d452fc
internal/trace.go
@@ -103,7 +103,7 @@ func (ctx *TraceContext) marshal2Bean() *TraceTransferBean {
103
} else {
104
buffer.WriteString(bean.Topic)
105
}
106
- //buffer.WriteString(bean.Topic)
+ // buffer.WriteString(bean.Topic)
107
buffer.WriteRune(contentSplitter)
108
buffer.WriteString(bean.MsgId)
109
@@ -358,9 +358,9 @@ func (td *traceDispatcher) process(maxWaitTime int64) {
358
case <-td.ticker.C:
359
delta := time.Since(lastput).Nanoseconds()
360
if delta > maxWaitTime {
361
- count++
362
lastput = time.Now()
363
if len(batch) > 0 {
+ count = 0
364
batchSend := batch
365
go primitive.WithRecover(func() {
366
td.batchCommit(batchSend)
0 commit comments