Skip to content

Commit dd17bd0

Browse files
committed
Remove @async_handle_cancellation
It's no longer needed as of the previous commit
1 parent 2558d6c commit dd17bd0

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

trinity/sync/full/state.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
HexaryTrieSync,
6363
SyncRequest,
6464
)
65-
from trinity.utils.cancellation import async_handle_cancellation
6665
from trinity.utils.timer import Timer
6766

6867

@@ -225,7 +224,6 @@ async def request_nodes(self, node_keys: Iterable[Hash32]) -> None:
225224
self.request_tracker.active_requests[peer] = (time.time(), batch)
226225
self.run_task(self._request_and_process_nodes(peer, batch))
227226

228-
@async_handle_cancellation
229227
async def _request_and_process_nodes(self, peer: ETHPeer, batch: Tuple[Hash32, ...]) -> None:
230228
self.logger.debug("Requesting %d trie nodes from %s", len(batch), peer)
231229
try:

trinity/utils/cancellation.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)