From a3d1296ed9c914dc2ffef87ba7568edfafc6efac Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 27 Jun 2019 12:18:59 -0700 Subject: [PATCH] go fmt --- weed/shell/command_ec_encode.go | 2 +- weed/storage/store.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go index 3ae6b9101..8ad0d51c8 100644 --- a/weed/shell/command_ec_encode.go +++ b/weed/shell/command_ec_encode.go @@ -119,7 +119,7 @@ func markVolumeReadonly(ctx context.Context, grpcDialOption grpc.DialOption, vol err := operation.WithVolumeServerClient(location.Url, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error { _, markErr := volumeServerClient.VolumeMarkReadonly(ctx, &volume_server_pb.VolumeMarkReadonlyRequest{ - VolumeId: uint32(volumeId), + VolumeId: uint32(volumeId), }) return markErr }) diff --git a/weed/storage/store.go b/weed/storage/store.go index 3d4859a97..d2dd76d52 100644 --- a/weed/storage/store.go +++ b/weed/storage/store.go @@ -252,7 +252,7 @@ func (s *Store) HasVolume(i needle.VolumeId) bool { return v != nil } -func (s *Store) MarkVolumeReadonly(i needle.VolumeId) error{ +func (s *Store) MarkVolumeReadonly(i needle.VolumeId) error { v := s.findVolume(i) if v == nil { return fmt.Errorf("volume %d not found", i)