1
0

util: rm SilentTaskGroup. this does not seem to be needed anymore

I think this was originally needed due to incorrect management of group lifecycles,
which our current code is doing better.

also note that if we needed this, in newer aiorpcx, the name of
the field was ~changed from `_closed` to `joined`:
239002689a
This commit is contained in:
SomberNight
2022-02-08 12:07:14 +01:00
parent 3f3212e94d
commit c131831373
5 changed files with 9 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ from aiorpcx.jsonrpc import JSONRPC, CodeMessageError
from aiorpcx.rawsocket import RSClient
import certifi
from .util import (ignore_exceptions, log_exceptions, bfh, SilentTaskGroup, MySocksProxy,
from .util import (ignore_exceptions, log_exceptions, bfh, MySocksProxy,
is_integer, is_non_negative_integer, is_hash256_str, is_hex_str,
is_int_or_float, is_non_negative_int_or_float)
from . import util
@@ -376,7 +376,7 @@ class Interface(Logger):
# Dump network messages (only for this interface). Set at runtime from the console.
self.debug = False
self.taskgroup = SilentTaskGroup()
self.taskgroup = TaskGroup()
async def spawn_task():
task = await self.network.taskgroup.spawn(self.run())