mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
add pong handler to reduce verbosity
This commit is contained in:
parent
75feba4b96
commit
1d9ea1935e
1 changed files with 3 additions and 1 deletions
|
@ -396,7 +396,6 @@ class Peer(PrintError):
|
|||
|
||||
def process_message(self, message):
|
||||
message_type, payload = decode_msg(message)
|
||||
#self.print_error("Received '%s'" % message_type.upper())
|
||||
try:
|
||||
f = getattr(self, 'on_' + message_type)
|
||||
except AttributeError:
|
||||
|
@ -414,6 +413,9 @@ class Peer(PrintError):
|
|||
l = int.from_bytes(payload['num_pong_bytes'], 'big')
|
||||
self.send_message(gen_msg('pong', byteslen=l))
|
||||
|
||||
def on_pong(self, payload):
|
||||
pass
|
||||
|
||||
def on_accept_channel(self, payload):
|
||||
temp_chan_id = payload["temporary_channel_id"]
|
||||
if temp_chan_id not in self.channel_accepted: raise Exception("Got unknown accept_channel")
|
||||
|
|
Loading…
Add table
Reference in a new issue