mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-13 10:01:22 +01:00
main
- Prep for demo
This commit is contained in:
parent
915263e49a
commit
901674a5e3
@ -99,10 +99,11 @@ func (s *SyncerImpl) Sync(correspondingMesh mesh.MeshProvider) (bool, error) {
|
|||||||
|
|
||||||
var wait sync.WaitGroup
|
var wait sync.WaitGroup
|
||||||
|
|
||||||
for index, node := range gossipNodes {
|
for index := range gossipNodes {
|
||||||
wait.Add(1)
|
wait.Add(1)
|
||||||
|
|
||||||
syncNode := func(i int) {
|
syncNode := func(i int) {
|
||||||
|
node := gossipNodes[i]
|
||||||
correspondingPeer, err := correspondingMesh.GetNode(node)
|
correspondingPeer, err := correspondingMesh.GetNode(node)
|
||||||
|
|
||||||
defer wait.Done()
|
defer wait.Done()
|
||||||
|
Loading…
Reference in New Issue
Block a user