Browse Source
Update weed/wdclient/masterclient.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/7518/head
Chris Lu
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
weed/wdclient/masterclient.go
|
|
|
@ -38,7 +38,7 @@ func (p *masterVolumeProvider) LookupVolumeIds(ctx context.Context, volumeIds [] |
|
|
|
timeoutCtx, cancel := context.WithTimeout(ctx, p.masterClient.grpcTimeout) |
|
|
|
defer cancel() |
|
|
|
|
|
|
|
err := pb.WithMasterClient(false, p.masterClient.GetMaster(timeoutCtx), p.masterClient.grpcDialOption, false, func(client master_pb.SeaweedClient) error { |
|
|
|
err := pb.WithMasterClient(false, p.masterClient.GetMaster(ctx), p.masterClient.grpcDialOption, false, func(client master_pb.SeaweedClient) error { |
|
|
|
resp, err := client.LookupVolume(timeoutCtx, &master_pb.LookupVolumeRequest{ |
|
|
|
VolumeOrFileIds: volumeIds, |
|
|
|
}) |
|
|
|
|