Skip to content

Commit

Permalink
Fix Transport leak with multiple reverseproxies being created
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Falck committed Mar 3, 2021
1 parent 6fddf02 commit 1eba924
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ func startDiscovery(ctx context.Context, cfg *config) {
func runDiscovery(ctx context.Context, cfg *config) {
ip := cfg.Discovery.Address
for name, exp := range cfg.Discovery.Exporters {
if m := cfg.getModule(name); m != nil {
continue
}
if alive(ctx, ip, exp.Port, exp.Path) {
mc := &moduleConfig{
Method: "http",
Expand Down

0 comments on commit 1eba924

Please sign in to comment.