pool.Get instead pool.Dial for pullSpace

This commit is contained in:
Sergey Cherepanov 2023-01-15 22:45:43 +03:00 committed by Mikhail Iudin
parent 9828b1ea04
commit 7c017f6249
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -170,7 +170,7 @@ func (s *spaceService) getSpaceStorageFromRemote(ctx context.Context, id string)
return return
} }
p, err = s.pool.DialOneOf(ctx, lastConfiguration.NodeIds(id)) p, err = s.pool.GetOneOf(ctx, lastConfiguration.NodeIds(id))
if err != nil { if err != nil {
return return
} }