Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/push-docker-custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy dev images to GHCR
on:
push:
branches:
- 'feature/public-peers'
- 'peer-discovery-issue'

jobs:
push-store-image:
Expand All @@ -21,5 +21,5 @@ jobs:

- name: 'Build Inventory Image'
run: |
docker build . --tag ghcr.io/qubic/qubic-nodes:public-peers
docker push ghcr.io/qubic/qubic-nodes:public-peers
docker build . --tag ghcr.io/qubic/qubic-nodes:peer-discovery-issue
docker push ghcr.io/qubic/qubic-nodes:peer-discovery-issue
6 changes: 4 additions & 2 deletions node/peer_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ func (ppd *PublicPeerDiscovery) FindNewPeers(nodes []*Node, addresses []string)
for _, node := range nodes {
ppd.lookupPeers(node.Peers, peers, nodesChannel, &waitGroup)
}
waitGroup.Wait()
close(nodesChannel)
go func() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this most certainly makes the code continue I don't think it fixes the underlying issue.

waitGroup.Wait()
close(nodesChannel)
}()

var newNodes []*Node
for node := range nodesChannel {
Expand Down
Loading