aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/discovery
diff options
context:
space:
mode:
authorhozan23 <hozan23@proton.me>2024-03-21 12:28:47 +0100
committerhozan23 <hozan23@proton.me>2024-03-21 12:28:47 +0100
commit5baf14594331b1b0b60d655240eb398bcce61f7c (patch)
tree1911a2af6e0684c35a143095ee31223f1f88abd5 /p2p/src/discovery
parent379dca552ca91d22ee007b42f93803ad3dc2b274 (diff)
core: minor modification to TaskGroup api
Diffstat (limited to 'p2p/src/discovery')
-rw-r--r--p2p/src/discovery/mod.rs2
-rw-r--r--p2p/src/discovery/refresh.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/p2p/src/discovery/mod.rs b/p2p/src/discovery/mod.rs
index 4b54233..3e437aa 100644
--- a/p2p/src/discovery/mod.rs
+++ b/p2p/src/discovery/mod.rs
@@ -116,7 +116,7 @@ impl Discovery {
outbound_slots,
connector,
listener,
- task_group: TaskGroup::new(ex),
+ task_group: TaskGroup::with_executor(ex),
config,
})
}
diff --git a/p2p/src/discovery/refresh.rs b/p2p/src/discovery/refresh.rs
index e56f0eb..035a581 100644
--- a/p2p/src/discovery/refresh.rs
+++ b/p2p/src/discovery/refresh.rs
@@ -70,7 +70,7 @@ impl RefreshService {
Self {
table,
listen_endpoint,
- task_group: TaskGroup::new(executor.clone()),
+ task_group: TaskGroup::with_executor(executor.clone()),
executor,
config,
monitor,