Browse Source

style: go fmt for all

pull/948/head
Wine93 6 years ago
parent
commit
32f93fb09e
  1. 2
      weed/command/server.go
  2. 1
      weed/shell/command_volume_unmount.go
  3. 1
      weed/storage/needle/needle.go
  4. 1
      weed/storage/needle/needle_read_write.go
  5. 1
      weed/util/compression.go

2
weed/command/server.go

@ -1,10 +1,10 @@
package command
import (
"fmt"
"github.com/chrislusf/raft/protobuf"
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/spf13/viper"
"fmt"
"net/http"
"os"
"runtime"

1
weed/shell/command_volume_unmount.go

@ -50,7 +50,6 @@ func (c *commandVolumeUnmount) Do(args []string, commandEnv *commandEnv, writer
}
func unmountVolume(ctx context.Context, grpcDialOption grpc.DialOption, volumeId needle.VolumeId, sourceVolumeServer string) (err error) {
return operation.WithVolumeServerClient(sourceVolumeServer, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error {
_, unmountErr := volumeServerClient.VolumeUnmount(ctx, &volume_server_pb.VolumeUnmountRequest{

1
weed/storage/needle/needle.go

@ -188,4 +188,3 @@ func ParseNeedleIdCookie(key_hash_string string) (NeedleId, Cookie, error) {
func (n *Needle) LastModifiedString() string {
return time.Unix(int64(n.LastModified), 0).Format("2006-01-02T15:04:05")
}

1
weed/storage/needle/needle_read_write.go

@ -390,4 +390,3 @@ func (n *Needle) SetHasPairs() {
func getActualSize(size uint32, version Version) int64 {
return NeedleHeaderSize + NeedleBodyLength(size, version)
}

1
weed/util/compression.go

@ -91,4 +91,3 @@ func UnGzipData(input []byte) ([]byte, error) {
return false, false
}
Loading…
Cancel
Save