Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <[email protected]>
  • Loading branch information
nolouch committed Jun 2, 2021
1 parent d5d6187 commit 08b196c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/core/region_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ func WithDownPeers(downPeers []*pdpb.PeerStats) RegionCreateOption {
}
}

// WithFlowBucketsWidth set the round step, which use to round to the Nearest number
// with the step.
func WithFlowBucketsWidth(bits uint64) RegionCreateOption {
// WithFlowBucketsWidth set the bucket with, which use to round to the nearest bucket
// with the with.
func WithFlowBucketsWidth(width uint64) RegionCreateOption {
return func(region *RegionInfo) {
if bits == 0 {
if width == 0 {
return
}
region.flowBucketsWidth = bits
region.flowBucketsWidth = width
}
}

Expand Down

0 comments on commit 08b196c

Please sign in to comment.