Browse Source

Fix some typos.

master
Neil Booth 8 years ago
parent
commit
be8adbbcd5
  1. 2
      lib/jsonrpc.py
  2. 4
      server/protocol.py

2
lib/jsonrpc.py

@ -145,7 +145,7 @@ class JSONRPC(asyncio.Protocol, LoggedClass):
self.recv_size += len(data) self.recv_size += len(data)
self.using_bandwidth(len(data)) self.using_bandwidth(len(data))
# Close abuvsive connections where buffered data exceeds limit # Close abusive connections where buffered data exceeds limit
buffer_size = len(data) + sum(len(part) for part in self.parts) buffer_size = len(data) + sum(len(part) for part in self.parts)
if buffer_size > self.max_buffer_size: if buffer_size > self.max_buffer_size:
self.log_error('read buffer of {:,d} bytes exceeds {:,d} ' self.log_error('read buffer of {:,d} bytes exceeds {:,d} '

4
server/protocol.py

@ -552,8 +552,8 @@ class Session(JSONRPC):
'''Base class of ElectrumX JSON session protocols. '''Base class of ElectrumX JSON session protocols.
Each session runs its tasks in asynchronous parallelism with other Each session runs its tasks in asynchronous parallelism with other
sessions. To prevent some sessions blocking othersr, potentially sessions. To prevent some sessions blocking others, potentially
long-running requests should yield (not yet implemented). long-running requests should yield.
''' '''
def __init__(self, manager, bp, env, kind): def __init__(self, manager, bp, env, kind):

Loading…
Cancel
Save