fixed pool search

This commit is contained in:
ston1th 2020-06-04 22:40:38 +02:00
commit 4c7e511a72
3 changed files with 26 additions and 5 deletions

View file

@ -192,7 +192,7 @@ func (c *ServerClient) GetByURL(ctx context.Context, url string) (s *Server, err
var srv *Server
if node == "" && pool != "" {
srv, err = c.client.Pool.FindServerByID(ctx, pool, id)
if err == ErrServerNotFound {
if err != nil {
return
}
node = srv.Node