Skip to content

Commit ad61cc3

Browse files
authored
Merge branch 'master' into feat/kq_trace
2 parents fc69cf2 + 9dfbd48 commit ad61cc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: kq/pusher.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type (
2929
chunkSize int
3030
flushInterval time.Duration
3131

32-
// enable sync push
32+
// enableSyncPush is used to enable sync push
3333
enableSyncPush bool
3434
}
3535
)
@@ -56,7 +56,7 @@ func NewPusher(addrs []string, topic string, opts ...PushOption) *Pusher {
5656
topic: topic,
5757
}
5858

59-
// apply sync push
59+
// if enableSyncPush is true, return the pusher directly
6060
if options.enableSyncPush {
6161
return pusher
6262
}

0 commit comments

Comments
 (0)