thepalbi / ethereum-prometheus-exporter

Prometheus exporter for Ethereum client metrics
MIT License
1 stars 0 forks source link

Bug: loop variable captured by goroutine #12

Closed santihernandezc closed 2 years ago

santihernandezc commented 2 years ago

Loop variables contrInfo and client were being captured by a closure. This will cause concurrency issues. The fix is to explicitly pass these variables as arguments at each iteration.