further consolidation

This commit is contained in:
William Banfield
2022-10-20 13:02:46 -04:00
parent 7e5f932402
commit 78fbb5db08
4 changed files with 9 additions and 14 deletions

View File

@@ -452,11 +452,10 @@ func (bcR *Reactor) BroadcastStatusRequest() error {
bcR.Logger.Error("could not convert msg to proto message", "err", err)
return fmt.Errorf("could not convert msg to proto message: %w", err)
}
e := p2p.Envelope{
bcR.Switch.NewBroadcast(p2p.Envelope{
ChannelID: BlocksyncChannel,
Message: wm,
}
bcR.Switch.NewBroadcast(e)
})
return nil
}