mirror of
https://github.com/go-kratos/kratos.git
synced 2025-02-03 13:11:42 +02:00
commit
3f88443edf
@ -610,7 +610,9 @@ func (d *Discovery) polls(ctx context.Context) (apps map[string]*naming.Instance
|
|||||||
}
|
}
|
||||||
if err = d.httpClient.Get(ctx, uri, "", params, res); err != nil {
|
if err = d.httpClient.Get(ctx, uri, "", params, res); err != nil {
|
||||||
d.switchNode()
|
d.switchNode()
|
||||||
log.Error("discovery: client.Get(%s) error(%+v)", uri+"?"+params.Encode(), err)
|
if ctx.Err() != context.Canceled {
|
||||||
|
log.Error("discovery: client.Get(%s) error(%+v)", uri+"?"+params.Encode(), err)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if ec := ecode.Int(res.Code); !ecode.Equal(ecode.OK, ec) {
|
if ec := ecode.Int(res.Code); !ecode.Equal(ecode.OK, ec) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user