- Prep for demo
This commit is contained in:
Tim Beatham 2024-01-17 16:21:49 +00:00
parent 915263e49a
commit 901674a5e3

View File

@ -99,10 +99,11 @@ func (s *SyncerImpl) Sync(correspondingMesh mesh.MeshProvider) (bool, error) {
var wait sync.WaitGroup
for index, node := range gossipNodes {
for index := range gossipNodes {
wait.Add(1)
syncNode := func(i int) {
node := gossipNodes[i]
correspondingPeer, err := correspondingMesh.GetNode(node)
defer wait.Done()