mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-20 03:59:49 +08:00
move some volume lookup operations to grpc
jwt related lookup will come in next commit
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
func TailVolume(masterFn GetMasterFn, grpcDialOption grpc.DialOption, vid needle.VolumeId, sinceNs uint64, timeoutSeconds int, fn func(n *needle.Needle) error) error {
|
||||
// find volume location, replication, ttl info
|
||||
lookup, err := Lookup(masterFn, vid.String())
|
||||
lookup, err := LookupVolumeId(masterFn, grpcDialOption, vid.String())
|
||||
if err != nil {
|
||||
return fmt.Errorf("look up volume %d: %v", vid, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user