fixed pool search
This commit is contained in:
parent
0dead7e423
commit
4c7e511a72
3 changed files with 26 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue