From be8adbbcd574242e319669676e6e07bdc3aef7c3 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 4 Dec 2016 23:41:07 +0900 Subject: [PATCH] Fix some typos. --- lib/jsonrpc.py | 2 +- server/protocol.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/jsonrpc.py b/lib/jsonrpc.py index 861b565..d3d7390 100644 --- a/lib/jsonrpc.py +++ b/lib/jsonrpc.py @@ -145,7 +145,7 @@ class JSONRPC(asyncio.Protocol, LoggedClass): self.recv_size += 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) if buffer_size > self.max_buffer_size: self.log_error('read buffer of {:,d} bytes exceeds {:,d} ' diff --git a/server/protocol.py b/server/protocol.py index 8ed4a73..8d348b2 100644 --- a/server/protocol.py +++ b/server/protocol.py @@ -552,8 +552,8 @@ class Session(JSONRPC): '''Base class of ElectrumX JSON session protocols. Each session runs its tasks in asynchronous parallelism with other - sessions. To prevent some sessions blocking othersr, potentially - long-running requests should yield (not yet implemented). + sessions. To prevent some sessions blocking others, potentially + long-running requests should yield. ''' def __init__(self, manager, bp, env, kind):