From 9fef5a3aa0395509066cf325da3e35cafcb52591 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Thu, 17 Mar 2022 14:46:05 -0400 Subject: [PATCH] lint++ --- internal/consensus/reactor.go | 8 ++++---- internal/consensus/state.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/consensus/reactor.go b/internal/consensus/reactor.go index 9ff8d4f4f..d53be3040 100644 --- a/internal/consensus/reactor.go +++ b/internal/consensus/reactor.go @@ -426,10 +426,10 @@ func (r *Reactor) updateRoundStateRoutine() { } } -func (conR *Reactor) getRoundState() *cstypes.RoundState { - conR.mtx.RLock() - defer conR.mtx.RUnlock() - return conR.rs +func (r *Reactor) getRoundState() *cstypes.RoundState { + r.mtx.RLock() + defer r.mtx.RUnlock() + return r.rs } func (r *Reactor) gossipDataForCatchup(ctx context.Context, rs *cstypes.RoundState, prs *cstypes.PeerRoundState, ps *PeerState) { diff --git a/internal/consensus/state.go b/internal/consensus/state.go index d5001b0a2..96ff10bad 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -970,7 +970,7 @@ func (cs *State) handleMsg(ctx context.Context, mi msgInfo) { // We unlock here to yield to any routines that need to read the the RoundState. // Previously, this code held the lock from the point at which the final block - // part was recieved until the block executed against the application. + // part was received until the block executed against the application. // This prevented the reactor from being able to retrieve the most updated // version of the RoundState. The reactor needs the updated RoundState to // gossip the now completed block.