Fix linter warnings for StatusBackend. (#675)
This commit is contained in:
parent
716f1b1cb0
commit
b83666a90e
|
@ -229,9 +229,9 @@ func (b *StatusBackend) registerHandlers() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConnectionChange handles network state changes logic.
|
// ConnectionChange handles network state changes logic.
|
||||||
func (m *StatusBackend) ConnectionChange(state ConnectionState) {
|
func (b *StatusBackend) ConnectionChange(state ConnectionState) {
|
||||||
log.Info("Network state change", "old", m.connectionState, "new", state)
|
log.Info("Network state change", "old", b.connectionState, "new", state)
|
||||||
m.connectionState = state
|
b.connectionState = state
|
||||||
|
|
||||||
// logic of handling state changes here
|
// logic of handling state changes here
|
||||||
// restart node? force peers reconnect? etc
|
// restart node? force peers reconnect? etc
|
||||||
|
|
Loading…
Reference in New Issue