Chris Lu 3 years ago
parent
commit
e6ef7b2387
  1. 8
      weed/operation/assign_file_id.go

8
weed/operation/assign_file_id.go

@ -66,6 +66,10 @@ func Assign(masterFn GetMasterFn, grpcDialOption grpc.DialOption, primaryRequest
return grpcErr return grpcErr
} }
if resp.Error != "" {
return fmt.Errorf("assignRequest: %v", resp.Error)
}
ret.Count = resp.Count ret.Count = resp.Count
ret.Fid = resp.Fid ret.Fid = resp.Fid
ret.Url = resp.Location.Url ret.Url = resp.Location.Url
@ -80,10 +84,6 @@ func Assign(masterFn GetMasterFn, grpcDialOption grpc.DialOption, primaryRequest
}) })
} }
if resp.Error != "" {
return fmt.Errorf("assignRequest: %v", resp.Error)
}
return nil return nil
}) })

Loading…
Cancel
Save