joaoqalves / krakend-eureka

An Eureka client and subscriber for the KrakenD framework. http://krakend.io/
4 stars 3 forks source link

Update of Eureka Instances doesn't work #2

Open spino233 opened 2 years ago

spino233 commented 2 years ago

Hi,

I've applied the plugin to the source code of KrakenD as it's explained in the example and the registration to Eureka Server happens without no issue but the update of the eureka instances doesn't.

image

When I open the code of subscriber.go inside an editor, it says that the goroutine inside the loop() function is unreachable, in fact nothing is printed in the console(there is a fmt.Println("LOOP") inside the goroutine in question), so i can easy understand that the gorutine is never executed and the instances of eureka are never updated.

joaoqalves commented 2 years ago

Hi @spino233. This was a small PoC I did some years ago and it's not intended for production :)

I don't use KrakenD nor Eureka anymore. So, if you want, you can submit a PR to fix it.

Best, João