Found a possible issue in [bcachain/go-bcachain](https://www.github.com/bcachain/go-bcachain) at [go-bcachain/cmd/swarm/swarm-smoke/feed_upload_and_sync.go](https://github.com/bcachain/go-bcachain/blob/7f6052d80c6dec4616afeb79d55fe975d13be7c9/go-bcachain/cmd/swarm/swarm-smoke/feed_upload_and_sync.go#L198-L212) The below snippet of Go code triggered static analysis which searches for goroutines and/or defer statements which capture loop variables. [Click here to see the code in its original context.](https://github.com/bcachain/go-bcachain/blob/7f6052d80c6dec4616afeb79d55fe975d13be7c9/go-bcachain/cmd/swarm/swarm-smoke/feed_upload_and_sync.go#L198-L212) <details> <summary>Click here to show the 15 line(s) of Go which triggered the analyzer.</summary> ```go for _, hex := range []string{topicHex, subTopicOnlyHex, mergedSubTopicHex} { wg.Add(1) ruid := uuid.New()[:8] go func(hex string, endpoint string, ruid string) { for { err := fetchFeed(hex, userHex, httpEndpoint(host), dataHash, ruid) if err != nil { continue } wg.Done() return } }(hex, httpEndpoint(host), ruid) } ``` </details> commit ID: 7f6052d80c6dec4616afeb79d55fe975d13be7c9
Found a possible issue in bcachain/go-bcachain at go-bcachain/cmd/swarm/swarm-smoke/feed_upload_and_sync.go
The below snippet of Go code triggered static analysis which searches for goroutines and/or defer statements
which capture loop variables.
Click here to see the code in its original context.
Click here to show the 15 line(s) of Go which triggered the analyzer.
commit ID: 7f6052d80c6dec4616afeb79d55fe975d13be7c9