mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-08 01:57:04 +02:00
go fmt
This commit is contained in:
parent
ec75b2d761
commit
a3d1296ed9
|
@ -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 {
|
err := operation.WithVolumeServerClient(location.Url, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error {
|
||||||
_, markErr := volumeServerClient.VolumeMarkReadonly(ctx, &volume_server_pb.VolumeMarkReadonlyRequest{
|
_, markErr := volumeServerClient.VolumeMarkReadonly(ctx, &volume_server_pb.VolumeMarkReadonlyRequest{
|
||||||
VolumeId: uint32(volumeId),
|
VolumeId: uint32(volumeId),
|
||||||
})
|
})
|
||||||
return markErr
|
return markErr
|
||||||
})
|
})
|
||||||
|
|
|
@ -252,7 +252,7 @@ func (s *Store) HasVolume(i needle.VolumeId) bool {
|
||||||
return v != nil
|
return v != nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Store) MarkVolumeReadonly(i needle.VolumeId) error{
|
func (s *Store) MarkVolumeReadonly(i needle.VolumeId) error {
|
||||||
v := s.findVolume(i)
|
v := s.findVolume(i)
|
||||||
if v == nil {
|
if v == nil {
|
||||||
return fmt.Errorf("volume %d not found", i)
|
return fmt.Errorf("volume %d not found", i)
|
||||||
|
|
Loading…
Reference in a new issue