aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-09-12 04:08:03 -0700
committerChris Lu <chris.lu@gmail.com>2020-09-12 04:08:03 -0700
commit446e476a11cb2b6bb947ae39619099c09fdd091c (patch)
tree5a06a8bf0a7092e8238b2543cdf4a945a020dad3 /weed/shell
parentea26a98753b7f15b561504166469760237e49c3b (diff)
downloadseaweedfs-446e476a11cb2b6bb947ae39619099c09fdd091c.tar.xz
seaweedfs-446e476a11cb2b6bb947ae39619099c09fdd091c.zip
go fmt
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/command_volume_balance.go2
-rw-r--r--weed/shell/command_volume_balance_test.go2
2 files changed, 1 insertions, 3 deletions
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index c92d61e35..624821431 100644
--- a/weed/shell/command_volume_balance.go
+++ b/weed/shell/command_volume_balance.go
@@ -174,7 +174,7 @@ func (n *Node) localVolumeRatio() float64 {
}
func (n *Node) localVolumeNextRatio() float64 {
- return divide(len(n.selectedVolumes) + 1, int(n.info.MaxVolumeCount))
+ return divide(len(n.selectedVolumes)+1, int(n.info.MaxVolumeCount))
}
func (n *Node) selectVolumes(fn func(v *master_pb.VolumeInformationMessage) bool) {
diff --git a/weed/shell/command_volume_balance_test.go b/weed/shell/command_volume_balance_test.go
index 4f46648c0..9e154dc00 100644
--- a/weed/shell/command_volume_balance_test.go
+++ b/weed/shell/command_volume_balance_test.go
@@ -20,7 +20,6 @@ func TestIsGoodMove(t *testing.T) {
var tests = []testMoveCase{
-
{
name: "test 100 move to spread into proper data centers",
replication: "100",
@@ -132,7 +131,6 @@ func TestIsGoodMove(t *testing.T) {
targetLocation: location{"dc1", "r2", &master_pb.DataNodeInfo{Id: "dn3"}},
expected: true,
},
-
}
for _, tt := range tests {