kratos icon indicating copy to clipboard operation
kratos copied to clipboard

consul:no return err even if ctx is done

Open wuqinqiang opened this issue 2 years ago • 0 comments

What happened:

file:consul/watcher.go

no return err even if ctx is done.

截屏2022-11-29 19 30 50

file:consul/registry.go

  • goroutine has no exit.
  • get service has different timeout.

截屏2022-11-29 19 33 49

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kratos version v2.5.3
  • Go version go1.18.3

wuqinqiang avatar Nov 29 '22 11:11 wuqinqiang