mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-24 02:03:17 +08:00
go fmt
This commit is contained in:
parent
ea26a98753
commit
446e476a11
@ -84,4 +84,3 @@ func ReadFilerSignature(grpcDialOption grpc.DialOption, filer string) (filerSign
|
||||
}
|
||||
return filerSignature, nil
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -16,7 +16,7 @@ var(
|
||||
UnsupportedCompression = fmt.Errorf("unsupported compression")
|
||||
)
|
||||
|
||||
func MaybeGzipData(input []byte) ([]byte) {
|
||||
func MaybeGzipData(input []byte) []byte {
|
||||
if IsGzippedContent(input) {
|
||||
return input
|
||||
}
|
||||
@ -30,7 +30,7 @@ func MaybeGzipData(input []byte) ([]byte) {
|
||||
return gzipped
|
||||
}
|
||||
|
||||
func MaybeDecompressData(input []byte) ([]byte) {
|
||||
func MaybeDecompressData(input []byte) []byte {
|
||||
uncompressed, err := DecompressData(input)
|
||||
if err != nil {
|
||||
if err != UnsupportedCompression {
|
||||
|
Loading…
Reference in New Issue
Block a user