compiles after NewBroadcast change

This commit is contained in:
William Banfield
2022-10-19 13:05:05 -04:00
parent 01db5dc019
commit 73d0f8116a
6 changed files with 109 additions and 30 deletions
+5 -1
View File
@@ -277,7 +277,11 @@ func (r *Reactor) Sync(stateProvider StateProvider, discoveryTime time.Duration)
hook := func() {
r.Logger.Debug("Requesting snapshots from known peers")
// Request snapshots from all currently connected peers
r.Switch.Broadcast(SnapshotChannel, mustEncodeMsg(&ssproto.SnapshotsRequest{}))
e := p2p.Envelope{
ChannelID: SnapshotChannel,
Message: toWrappedProto(&ssproto.SnapshotsRequest{}),
}
r.Switch.NewBroadcast(e)
}
hook()