From e232b4fd246eeec3149853d32a35016ab07360db Mon Sep 17 00:00:00 2001 From: Andrej Mihajlov Date: Wed, 15 Oct 2025 14:17:36 +0200 Subject: [PATCH] Revert "Propagate cancel token to mixnet client" This reverts commit 50a259d454dd0142a4d7593240fe7124cf78680d. --- Cargo.lock | 1 + nym-registration-client/src/builder/config.rs | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 61cb40b397..c320b9b05c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5746,6 +5746,7 @@ dependencies = [ "criterion", "ff", "group", + "lazy_static", "nym-contracts-common", "nym-pemstore", "rand 0.8.5", diff --git a/nym-registration-client/src/builder/config.rs b/nym-registration-client/src/builder/config.rs index d05abb2ae3..494e3fb2a1 100644 --- a/nym-registration-client/src/builder/config.rs +++ b/nym-registration-client/src/builder/config.rs @@ -4,8 +4,7 @@ use nym_credential_storage::persistent_storage::PersistentStorage; use nym_registration_common::NymNode; use nym_sdk::{ - DebugConfig, NymNetworkDetails, RememberMe, ShutdownToken, ShutdownTracker, TopologyProvider, - UserAgent, + DebugConfig, NymNetworkDetails, RememberMe, TopologyProvider, UserAgent, mixnet::{ CredentialStorage, GatewaysDetailsStore, KeyStore, MixnetClient, MixnetClientBuilder, MixnetClientStorage, OnDiskPersistent, ReplyStorageBackend, StoragePaths, x25519::KeyPair, @@ -116,10 +115,7 @@ impl BuilderConfig { .debug_config(debug_config) .credentials_mode(true) .with_remember_me(remember_me) - .custom_topology_provider(self.custom_topology_provider) - .custom_shutdown(ShutdownTracker::new_from_external_shutdown_token( - ShutdownToken::from(self.cancel_token), - )); + .custom_topology_provider(self.custom_topology_provider); #[cfg(unix)] let builder = builder.with_connection_fd_callback(self.connection_fd_callback);