Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

修改consumer提交的时间间隔 #308

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ func (c *Consumer) twLoop(stopped <-chan none) {

// commit loop, triggered by the mainLoop
func (c *Consumer) cmLoop(stopped <-chan none) {
ticker := time.NewTicker(c.client.config.Consumer.Offsets.CommitInterval)
ticker := time.NewTicker(c.client.config.Consumer.Offsets.AutoCommit.Interval)
defer ticker.Stop()

for {
Expand Down