Skip to content

Commit

Permalink
Add the default value "MessageGroupDuration" to the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Oktay Kocer committed Jan 15, 2024
1 parent d0a5b26 commit f76f4af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ under [the specified folder](examples/with-sasl-plaintext) and then start the ap
| `commitInterval` | indicates the interval at which offsets are committed to the broker. | 1s |
| `rack` | [see doc](https://pkg.go.dev/github.com/segmentio/kafka-go#RackAffinityGroupBalancer) | |
| `clientId` | [see doc](https://pkg.go.dev/github.com/segmentio/kafka-go#Dialer) | |
| `messageGroupDuration` | Maximum time to wait for a batch | |
| `messageGroupDuration` | Maximum time to wait for a batch | 1s |
| `dial.Timeout` | [see doc](https://pkg.go.dev/github.com/segmentio/kafka-go#Dialer) | no timeout |
| `dial.KeepAlive` | [see doc](https://pkg.go.dev/github.com/segmentio/kafka-go#Dialer) | not enabled |
| `transport.DialTimeout ` | [see doc](https://pkg.go.dev/github.com/segmentio/kafka-go@#Transport) | 5s |
Expand Down
3 changes: 3 additions & 0 deletions consumer_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func TestConsumerConfig_validate(t *testing.T) {
if *cfg.TransactionalRetry != true {
t.Fatal("Default Transactional Retry is true")
}
if cfg.MessageGroupDuration != time.Second {
t.Fatal("Message Group Duration default value must equal to 1s")
}
})
t.Run("Set_Defaults_When_Distributed_Tracing_Enabled", func(t *testing.T) {
// Given
Expand Down

0 comments on commit f76f4af

Please sign in to comment.