summaryrefslogtreecommitdiff
path: root/crates/tor-circmgr
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-circmgr')
-rw-r--r--crates/tor-circmgr/Cargo.toml6
-rw-r--r--crates/tor-circmgr/src/hspool.rs12
2 files changed, 10 insertions, 8 deletions
diff --git a/crates/tor-circmgr/Cargo.toml b/crates/tor-circmgr/Cargo.toml
index 2348ed387..8849b9d0d 100644
--- a/crates/tor-circmgr/Cargo.toml
+++ b/crates/tor-circmgr/Cargo.toml
@@ -18,6 +18,7 @@ full = [
"hs-client",
"hs-service",
"specific-relay",
+ "vanguards",
"retry-error/full",
"safelog/full",
"tor-basic-utils/full",
@@ -36,18 +37,17 @@ full = [
"tor-protover/full", "tor-relay-selection/full",
]
specific-relay = []
+vanguards = ["tor-guardmgr/vanguards"]
# Enable testing-only APIs. APIs under this feature are not
# covered by semver.
testing = ["tor-guardmgr/testing", "__is_experimental"]
-# Vanguards are experimental
-vanguards = ["tor-guardmgr/vanguards", "__is_experimental"]
# Enable experimental APIs that are not yet officially supported.
#
# These APIs are not covered by semantic versioning. Using this
# feature voids your "semver warrantee".
-experimental = ["experimental-api", "ntor_v3", "testing", "geoip", "vanguards"]
+experimental = ["experimental-api", "ntor_v3", "testing", "geoip"]
geoip = ["tor-geoip", "tor-netdir/geoip", "tor-relay-selection/geoip", "__is_experimental"]
experimental-api = ["visibility", "__is_experimental"]
ntor_v3 = ["tor-proto/ntor_v3", "__is_experimental"]
diff --git a/crates/tor-circmgr/src/hspool.rs b/crates/tor-circmgr/src/hspool.rs
index 5c6076d2a..ace838e22 100644
--- a/crates/tor-circmgr/src/hspool.rs
+++ b/crates/tor-circmgr/src/hspool.rs
@@ -599,11 +599,13 @@ async fn launch_hs_circuits_as_needed<R: Runtime>(
let n_to_launch = circs_to_launch.n_to_launch();
let mut max_attempts = n_to_launch * 2;
- debug!(
- "launching {} STUB and {} STUB+ circuits",
- circs_to_launch.stub(),
- circs_to_launch.ext_stub()
- );
+ if n_to_launch > 0 {
+ debug!(
+ "launching {} STUB and {} STUB+ circuits",
+ circs_to_launch.stub(),
+ circs_to_launch.ext_stub()
+ );
+ }
// TODO: refactor this to launch the circuits in parallel
'inner: while circs_to_launch.n_to_launch() > 0 {