mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
style: go fmt for all
This commit is contained in:
parent
82e06a780b
commit
32f93fb09e
|
@ -1,10 +1,10 @@
|
||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"github.com/chrislusf/raft/protobuf"
|
"github.com/chrislusf/raft/protobuf"
|
||||||
"github.com/chrislusf/seaweedfs/weed/security"
|
"github.com/chrislusf/seaweedfs/weed/security"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
|
@ -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) {
|
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 {
|
return operation.WithVolumeServerClient(sourceVolumeServer, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error {
|
||||||
_, unmountErr := volumeServerClient.VolumeUnmount(ctx, &volume_server_pb.VolumeUnmountRequest{
|
_, unmountErr := volumeServerClient.VolumeUnmount(ctx, &volume_server_pb.VolumeUnmountRequest{
|
||||||
|
|
|
@ -188,4 +188,3 @@ func ParseNeedleIdCookie(key_hash_string string) (NeedleId, Cookie, error) {
|
||||||
func (n *Needle) LastModifiedString() string {
|
func (n *Needle) LastModifiedString() string {
|
||||||
return time.Unix(int64(n.LastModified), 0).Format("2006-01-02T15:04:05")
|
return time.Unix(int64(n.LastModified), 0).Format("2006-01-02T15:04:05")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -390,4 +390,3 @@ func (n *Needle) SetHasPairs() {
|
||||||
func getActualSize(size uint32, version Version) int64 {
|
func getActualSize(size uint32, version Version) int64 {
|
||||||
return NeedleHeaderSize + NeedleBodyLength(size, version)
|
return NeedleHeaderSize + NeedleBodyLength(size, version)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,4 +91,3 @@ func UnGzipData(input []byte) ([]byte, error) {
|
||||||
|
|
||||||
return false, false
|
return false, false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue