Skip to content

Commit

Permalink
Remove buf per pump
Browse files Browse the repository at this point in the history
  • Loading branch information
july2993 committed Aug 30, 2019
1 parent f9e4589 commit 3074b3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drainer/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func NewMerger(ts int64, strategy string, sources ...MergeSource) *Merger {
m := &Merger{
latestTS: ts,
sources: make(map[string]MergeSource),
output: make(chan MergeItem, 10),
output: make(chan MergeItem),
strategy: mergeStrategy,
}

Expand Down
2 changes: 1 addition & 1 deletion drainer/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var (
Subsystem: "drainer",
Name: "read_binlog_size",
Help: "Bucketed histogram of size of a binlog.",
Buckets: prometheus.ExponentialBuckets(16, 2, 20),
Buckets: prometheus.ExponentialBuckets(16, 2, 25),
}, []string{"nodeID"})

queueSizeGauge = prometheus.NewGaugeVec(
Expand Down
2 changes: 1 addition & 1 deletion drainer/pump.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

const (
binlogChanSize = 10
binlogChanSize = 0
)

// Pump holds the connection to a pump node, and keeps the savepoint of binlog last read
Expand Down

0 comments on commit 3074b3b

Please sign in to comment.