diff options
Diffstat (limited to 'weed/operation')
| -rw-r--r-- | weed/operation/delete_content.go | 2 | ||||
| -rw-r--r-- | weed/operation/grpc_client.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/operation/delete_content.go b/weed/operation/delete_content.go index ad842a4cb..72041f126 100644 --- a/weed/operation/delete_content.go +++ b/weed/operation/delete_content.go @@ -97,7 +97,7 @@ func DeleteFiles(master string, fileIds []string) ([]*volume_server_pb.DeleteRes // DeleteFilesAtOneVolumeServer deletes a list of files that is on one volume server via gRpc func DeleteFilesAtOneVolumeServer(volumeServer string, fileIds []string) (ret []*volume_server_pb.DeleteResult, err error) { - err = withVolumeServerClient(volumeServer, func(volumeServerClient volume_server_pb.VolumeServerClient) error { + err = WithVolumeServerClient(volumeServer, func(volumeServerClient volume_server_pb.VolumeServerClient) error { req := &volume_server_pb.BatchDeleteRequest{ FileIds: fileIds, diff --git a/weed/operation/grpc_client.go b/weed/operation/grpc_client.go index 324166f93..5e6c23709 100644 --- a/weed/operation/grpc_client.go +++ b/weed/operation/grpc_client.go @@ -11,7 +11,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/util" ) -func withVolumeServerClient(volumeServer string, fn func(volume_server_pb.VolumeServerClient) error) error { +func WithVolumeServerClient(volumeServer string, fn func(volume_server_pb.VolumeServerClient) error) error { grpcAddress, err := toVolumeServerGrpcAddress(volumeServer) if err != nil { |
