aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_s3_circuitbreaker.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_s3_circuitbreaker.go')
-rw-r--r--weed/shell/command_s3_circuitbreaker.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/weed/shell/command_s3_circuitbreaker.go b/weed/shell/command_s3_circuitbreaker.go
index 5abc2d429..43ff454f7 100644
--- a/weed/shell/command_s3_circuitbreaker.go
+++ b/weed/shell/command_s3_circuitbreaker.go
@@ -4,13 +4,14 @@ import (
"bytes"
"flag"
"fmt"
- "github.com/seaweedfs/seaweedfs/weed/filer"
- "github.com/seaweedfs/seaweedfs/weed/pb/s3_pb"
- "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
"io"
"strconv"
"strings"
+ "github.com/seaweedfs/seaweedfs/weed/filer"
+ "github.com/seaweedfs/seaweedfs/weed/pb/s3_pb"
+ "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
+
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
)
@@ -180,8 +181,8 @@ func (c *commandS3CircuitBreaker) Do(args []string, commandEnv *CommandEnv, writ
return err
}
- _, _ = fmt.Fprintf(writer, string(buf.Bytes()))
- _, _ = fmt.Fprintln(writer)
+ fmt.Fprint(writer, buf.String())
+ fmt.Fprintln(writer)
if *apply {
if err := commandEnv.WithFilerClient(false, func(client filer_pb.SeaweedFilerClient) error {