def __init__(self, protocol: 'HathorProtocol'):
    self.log = logger.new(**protocol.get_logger_context())
    self.protocol = protocol
    self.cmd_map = {ProtocolMessages.ERROR: self.handle_error, ProtocolMessages.THROTTLE: self.handle_throttle}
    self.state_name = None
def __init__(self, protocol: 'HathorProtocol'):
    self.log = logger.new(**protocol.get_logger_context())
    self.protocol = protocol
    self.cmd_map = {ProtocolMessages.ERROR: self.handle_error, ProtocolMessages.THROTTLE: self.handle_throttle}
    self.state_name = None