From 08b196c9eff5e34ea3cf13db7a6023165b5ad17a Mon Sep 17 00:00:00 2001 From: nolouch Date: Wed, 2 Jun 2021 18:48:28 +0800 Subject: [PATCH] clean Signed-off-by: nolouch --- server/core/region_option.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/core/region_option.go b/server/core/region_option.go index 306d5646884c..e57a9c745fc7 100644 --- a/server/core/region_option.go +++ b/server/core/region_option.go @@ -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 } }