diff options
| author | chrislu <chris.lu@gmail.com> | 2024-12-19 19:23:27 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-12-19 19:25:06 -0800 |
| commit | ec155022e7e8d0f30bfcfa169248ec3ecc40e960 (patch) | |
| tree | 613416a40b45bd67bb9baf87be9843798a487914 /weed/shell/command_volume_fix_replication.go | |
| parent | a1a76ccb8c3316baf269aa856ba268d53e0943ba (diff) | |
| download | seaweedfs-ec155022e7e8d0f30bfcfa169248ec3ecc40e960.tar.xz seaweedfs-ec155022e7e8d0f30bfcfa169248ec3ecc40e960.zip | |
"golang.org/x/exp/slices" => "slices" and go fmt
Diffstat (limited to 'weed/shell/command_volume_fix_replication.go')
| -rw-r--r-- | weed/shell/command_volume_fix_replication.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go index 0b9ed09b7..f664ccbb2 100644 --- a/weed/shell/command_volume_fix_replication.go +++ b/weed/shell/command_volume_fix_replication.go @@ -13,10 +13,8 @@ import ( "github.com/seaweedfs/seaweedfs/weed/storage/needle" "github.com/seaweedfs/seaweedfs/weed/storage/needle_map" "github.com/seaweedfs/seaweedfs/weed/storage/types" - "github.com/seaweedfs/seaweedfs/weed/util" - - "golang.org/x/exp/slices" "google.golang.org/grpc" + "slices" "github.com/seaweedfs/seaweedfs/weed/operation" "github.com/seaweedfs/seaweedfs/weed/pb/master_pb" @@ -346,7 +344,7 @@ func (c *commandVolumeFixReplication) fixOneUnderReplicatedVolume(commandEnv *Co } } if resp.ProcessedBytes > 0 { - fmt.Fprintf(writer, "volume %d processed %s bytes\n", replica.info.Id, util.BytesToHumanReadable(uint64(resp.ProcessedBytes))) + fmt.Fprintf(writer, "volume %d processed %d bytes\n", replica.info.Id, resp.ProcessedBytes) } } |
