Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mapno committed Jan 10, 2025
1 parent 890104d commit c2b668e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/ingester/limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ func (l *limiter) minNonZero(first, second int) int {

type partitionLimiter struct {
limits overrides.Interface
ring ring.PartitionRingWatcher
ring *ring.PartitionRingWatcher
}

func NewPartitionLimiter(limits overrides.Interface, ring ring.PartitionRingWatcher) Limiter {
func NewPartitionLimiter(limits overrides.Interface, ring *ring.PartitionRingWatcher) Limiter {
return &partitionLimiter{
limits: limits,
ring: ring,
Expand Down
5 changes: 0 additions & 5 deletions pkg/ingest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ import (
)

const (
consumeFromLastOffset = "last-offset"
consumeFromStart = "start"
consumeFromEnd = "end"
consumeFromTimestamp = "timestamp"

// writerRequestTimeoutOverhead is the overhead applied by the Writer to every Kafka timeout.
// You can think about this overhead as an extra time for requests sitting in the client's buffer
// before being sent on the wire and the actual time it takes to send it over the network and
Expand Down

0 comments on commit c2b668e

Please sign in to comment.