Skip to content

Commit

Permalink
Address codespell warnings (ignore or fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Mar 30, 2023
1 parent b767628 commit c69468d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ jobs:
- uses: codespell-project/actions-codespell@v1
with:
only_warn: 1
ignore_words_list: ibrary,nd
4 changes: 2 additions & 2 deletions hivemind/p2p/servicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RPCHandler:

class StubBase:
"""
Base class for P2P RPC stubs. The interface mimicks gRPC stubs.
Base class for P2P RPC stubs. The interface mimics gRPC stubs.
Servicer derives stub classes for particular services (e.g. DHT, averager, etc.) from StubBase,
adding the necessary rpc_* methods. Calls to these methods are translated to calls to the remote peer.
Expand All @@ -32,7 +32,7 @@ def __init__(self, p2p: P2P, peer: PeerID, namespace: Optional[str]):

class ServicerBase:
"""
Base class for P2P RPC servicers (e.g. DHT, averager, MoE server). The interface mimicks gRPC servicers.
Base class for P2P RPC servicers (e.g. DHT, averager, MoE server). The interface mimics gRPC servicers.
- ``add_p2p_handlers(self, p2p)`` registers all rpc_* methods of the derived class as P2P handlers, allowing
other peers to call them. It uses type annotations for the ``request`` parameter and the return value
Expand Down

0 comments on commit c69468d

Please sign in to comment.