Skip to content

Commit

Permalink
fix: comments for PauseAll and ResumeAll (IBM#2523)
Browse files Browse the repository at this point in the history
Signed-off-by: napallday <bzx0619@gmail.com>
Signed-off-by: Ioan Zicu <ioan.zicu@nokia.com>
  • Loading branch information
napallday authored and Ioan Zicu committed Jul 31, 2023
1 parent 9553cc8 commit 9fdc0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ type Consumer interface {
// New calls to the broker will return records from these partitions if there are any to be fetched.
Resume(topicPartitions map[string][]int32)

// Pause suspends fetching from all partitions. Future calls to the broker will not return any
// PauseAll suspends fetching from all partitions. Future calls to the broker will not return any
// records from these partitions until they have been resumed using Resume()/ResumeAll().
// Note that this method does not affect partition subscription.
// In particular, it does not cause a group rebalance when automatic assignment is used.
PauseAll()

// Resume resumes all partitions which have been paused with Pause()/PauseAll().
// ResumeAll resumes all partitions which have been paused with Pause()/PauseAll().
// New calls to the broker will return records from these partitions if there are any to be fetched.
ResumeAll()
}
Expand Down

0 comments on commit 9fdc0d0

Please sign in to comment.