From b83666a90e6c70070ba8520f2ab9e6f706c9aeac Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Fri, 16 Feb 2018 14:58:13 +0100 Subject: [PATCH] Fix linter warnings for StatusBackend. (#675) --- geth/api/backend.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geth/api/backend.go b/geth/api/backend.go index cfcc800bf..8828003a1 100644 --- a/geth/api/backend.go +++ b/geth/api/backend.go @@ -229,9 +229,9 @@ func (b *StatusBackend) registerHandlers() error { } // ConnectionChange handles network state changes logic. -func (m *StatusBackend) ConnectionChange(state ConnectionState) { - log.Info("Network state change", "old", m.connectionState, "new", state) - m.connectionState = state +func (b *StatusBackend) ConnectionChange(state ConnectionState) { + log.Info("Network state change", "old", b.connectionState, "new", state) + b.connectionState = state // logic of handling state changes here // restart node? force peers reconnect? etc