Last 12 weeks · 0 commits
2 of 6 standards met
Repository: mitchellh/consulstructure. Description: Decode Consul data into Go (Golang) structures and watch for updates Stars: 178, Forks: 14. Primary language: Go. Languages: Go (100%). License: MIT. Open PRs: 0, open issues: 0. Last activity: 6y ago. Community health: 42%. Top contributors: mitchellh.
We found that this causes a when the Consul Service is stopped. This is because the go func is still connected to Consul after we call and we have closed our and channels. The still running go func attempts to send the error to the now closed channel. I think the fix is to check quitCh before sending error on line 208.