Skip to content

Commit

Permalink
Merge pull request #5 from cxdy/feat/kafkareceiver-fetch-configurable
Browse files Browse the repository at this point in the history
fix: specify int32
  • Loading branch information
cxdy committed Aug 26, 2024
2 parents 6edf5fa + 5e0bff2 commit 0f117ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions receiver/kafkareceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const (
defaultAutoCommitInterval = 1 * time.Second

// default from sarama.NewConfig()
defaultMinFetchSize = 1
defaultMinFetchSize = int32(1)
// default from sarama.NewConfig()
defaultDefaultFetchSize = 1048576
defaultDefaultFetchSize = int32(1048576)
// default from sarama.NewConfig()
defaultMaxFetchSize = 0
defaultMaxFetchSize = int32(0)
)

var errUnrecognizedEncoding = fmt.Errorf("unrecognized encoding")
Expand Down

0 comments on commit 0f117ff

Please sign in to comment.