move some volume lookup operations to grpc

jwt related lookup will come in next commit
This commit is contained in:
Chris Lu committed 2021-08-12 20:33:00 -07:00
1 parent 5571f4f70a
commit d1d1fc772c
6 files changed
+23 -20

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ func runBackup(cmd *Command, args []string) bool {
vid := needle.VolumeId(*s.volumeId)
// find volume location, replication, ttl info
lookup, err := operation.Lookup(func() string { return *s.master }, vid.String())
lookup, err := operation.LookupVolumeId(func() string { return *s.master }, grpcDialOption, vid.String())
if err != nil {
fmt.Printf("Error looking up volume %d: %v\n", vid, err)
return true