From 05b10550dc1fed149c8cea1fa8b9211fc2f8acb2 Mon Sep 17 00:00:00 2001 From: Sam Kleinman Date: Mon, 7 Mar 2022 12:52:39 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: M. J. Fromberger --- internal/consensus/byzantine_test.go | 3 +-- internal/evidence/pool.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/consensus/byzantine_test.go b/internal/consensus/byzantine_test.go index e6634fc54..029561d51 100644 --- a/internal/consensus/byzantine_test.go +++ b/internal/consensus/byzantine_test.go @@ -88,8 +88,7 @@ func TestByzantinePrevoteEquivocation(t *testing.T) { } eventBus := eventbus.NewDefault(log.TestingLogger().With("module", "events")) - err = eventBus.Start(ctx) - require.NoError(t, err) + require.NoError(t, eventBus.Start(ctx)) // Make a full instance of the evidence pool evidenceDB := dbm.NewMemDB() diff --git a/internal/evidence/pool.go b/internal/evidence/pool.go index 261fe2108..d2d998c91 100644 --- a/internal/evidence/pool.go +++ b/internal/evidence/pool.go @@ -252,7 +252,7 @@ func (evpool *Pool) State() sm.State { func (evpool *Pool) Start(state sm.State) error { if evpool.isStarted { - return errors.New("pooli is already running") + return errors.New("pool is already running") } evpool.state = state