Skip to content

Commit b2b17ac

Browse files
authored
Fix RetentionTime error in documentation default is -1 (#1260)
1 parent 1b64d17 commit b2b17ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reader.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,11 @@ type ReaderConfig struct {
469469
JoinGroupBackoff time.Duration
470470

471471
// RetentionTime optionally sets the length of time the consumer group will be saved
472-
// by the broker
472+
// by the broker. -1 will disable the setting and leave the
473+
// retention up to the broker's offsets.retention.minutes property. By
474+
// default, that setting is 1 day for kafka < 2.0 and 7 days for kafka >= 2.0.
473475
//
474-
// Default: 24h
476+
// Default: -1
475477
//
476478
// Only used when GroupID is set
477479
RetentionTime time.Duration

0 commit comments

Comments
 (0)