dariopb / traefikServiceFabricPlugin

Traefik 2.x Service Fabric Provider Plugin
MIT License
8 stars 6 forks source link

Fixing issue with load balancer servers #11

Closed Mahons closed 2 years ago

Mahons commented 3 years ago

Hi @dariopb, I've explicitly defined the service variable rather than using the short variable declaration and that seems to have resolved the issue. I'm not a GoLang expert, so I can't explain why this is the case, although, I believe it's to do with variable scope.

I've also removed the breaks from the switch case as VS Code was given out about them and I read up on it, it appears, they are not required as this occurs automatically.

resolve #10