Fix linter warnings for StatusBackend. (#675)

This commit is contained in:
Igor Mandrigin 2018-02-16 14:58:13 +01:00 committed by Dmitry Shulyak
parent 716f1b1cb0
commit b83666a90e
1 changed files with 3 additions and 3 deletions

View File

@ -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