Merge pull request #178 from harmony-one/do_not_panic

do not panic on unknown message
pull/180/head
Leo Chen 6 years ago committed by GitHub
commit adbc3445a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      beaconchain/libs/beaconchain_handler.go

@ -48,10 +48,10 @@ func (bc *BeaconChain) BeaconChainHandler(s p2p.Stream) {
bc.log.Info("Identity Message Type is of the type Register")
bc.AcceptConnections(identityMsgPayload)
default:
panic("Unrecognized identity message type")
bc.log.Error("Unrecognized identity message type", "type", idMsgType)
}
default:
panic("Unrecognized message category")
bc.log.Error("Unrecognized message category", "actionType", actionType)
}
}

Loading…
Cancel
Save