pool.Get instead pool.Dial for pullSpace

This commit is contained in:
Sergey Cherepanov 2023-01-15 22:45:43 +03:00
parent 8e1053a116
commit 4ff4c5950d
No known key found for this signature in database
GPG Key ID: 87F8EDE8FBDF637C

View File

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