aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/delete_content.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-12 21:40:33 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-12 21:40:33 -0700
commit5a0f92423eb4f89d35b245b1913eb7ba60436742 (patch)
tree433a3ce97451c9800089b8d87abc09480c0dcf78 /weed/operation/delete_content.go
parent6238644c35fc5dafcc4eb1722b3d5c9b92c0b031 (diff)
downloadseaweedfs-5a0f92423eb4f89d35b245b1913eb7ba60436742.tar.xz
seaweedfs-5a0f92423eb4f89d35b245b1913eb7ba60436742.zip
use grpc and jwt
Diffstat (limited to 'weed/operation/delete_content.go')
-rw-r--r--weed/operation/delete_content.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/operation/delete_content.go b/weed/operation/delete_content.go
index 868cb5694..15d07a52e 100644
--- a/weed/operation/delete_content.go
+++ b/weed/operation/delete_content.go
@@ -30,7 +30,7 @@ func ParseFileId(fid string) (vid string, key_cookie string, err error) {
// DeleteFiles batch deletes a list of fileIds
func DeleteFiles(masterFn GetMasterFn, usePublicUrl bool, grpcDialOption grpc.DialOption, fileIds []string) ([]*volume_server_pb.DeleteResult, error) {
- lookupFunc := func(vids []string) (results map[string]LookupResult, err error) {
+ lookupFunc := func(vids []string) (results map[string]*LookupResult, err error) {
results, err = LookupVolumeIds(masterFn, grpcDialOption, vids)
if err == nil && usePublicUrl {
for _, result := range results {
@@ -46,7 +46,7 @@ func DeleteFiles(masterFn GetMasterFn, usePublicUrl bool, grpcDialOption grpc.Di
}
-func DeleteFilesWithLookupVolumeId(grpcDialOption grpc.DialOption, fileIds []string, lookupFunc func(vid []string) (map[string]LookupResult, error)) ([]*volume_server_pb.DeleteResult, error) {
+func DeleteFilesWithLookupVolumeId(grpcDialOption grpc.DialOption, fileIds []string, lookupFunc func(vid []string) (map[string]*LookupResult, error)) ([]*volume_server_pb.DeleteResult, error) {
var ret []*volume_server_pb.DeleteResult