some minor changes

This commit is contained in:
Ethan Buchman
2017-10-30 22:52:03 -04:00
parent 61d76a273f
commit d71aed309f
4 changed files with 8 additions and 9 deletions
+5 -5
View File
@@ -57,7 +57,7 @@ func (conR *ConsensusReactor) OnStart() error {
conR.Logger.Info("ConsensusReactor ", "fastSync", conR.FastSync())
conR.BaseReactor.OnStart()
err := conR.broadcastRoutine()
err := conR.startBroadcastRoutine()
if err != nil {
return err
}
@@ -325,10 +325,10 @@ func (conR *ConsensusReactor) FastSync() bool {
//--------------------------------------
// broadcastRoutine subscribes for new round steps, votes and proposal
// heartbeats using the event bus and broadcasts events to peers upon receiving
// them.
func (conR *ConsensusReactor) broadcastRoutine() error {
// startBroadcastRoutine subscribes for new round steps, votes and proposal
// heartbeats using the event bus and starts a go routine to broadcasts events
// to peers upon receiving them.
func (conR *ConsensusReactor) startBroadcastRoutine() error {
const subscriber = "consensus-reactor"
ctx := context.Background()