From c47a3fb5fcb68c34998de4fecde6b9448e3ee77f Mon Sep 17 00:00:00 2001 From: Maple Nebel Date: Tue, 7 Jul 2026 08:13:42 +0200 Subject: [PATCH] fix accidentally forcing nex-accounts to be fully created before using nex provider --- Cargo.lock | 24 ++++++++++++------------ Cargo.toml | 2 +- src/nnid/provider.rs | 5 ++++- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c0a96fb..693cca8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1256,7 +1256,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -1955,7 +1955,7 @@ dependencies = [ "libc", "percent-encoding", "pin-project-lite", - "socket2 0.6.4", + "socket2 0.5.10", "system-configuration", "tokio", "tower-service", @@ -2166,7 +2166,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46" dependencies = [ "hermit-abi", "libc", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -2551,9 +2551,9 @@ dependencies = [ [[package]] name = "nex-account" -version = "0.2.3" +version = "0.2.4" source = "sparse+https://crates.spbr.net/api/v1/crates/" -checksum = "2dd9e8b23a09bb5ab8aeb5f39ed5ed1861549e4294757c9be30eb281c4ad11d0" +checksum = "6f1cfe935e71c764dfd6bad9b23372396f785408536c0a23fba379ef405117d3" dependencies = [ "base64", "bytemuck", @@ -3262,7 +3262,7 @@ dependencies = [ "quinn-udp", "rustc-hash", "rustls", - "socket2 0.6.4", + "socket2 0.5.10", "thiserror 2.0.18", "tokio", "tracing", @@ -3301,9 +3301,9 @@ dependencies = [ "cfg_aliases", "libc", "once_cell", - "socket2 0.6.4", + "socket2 0.5.10", "tracing", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -3697,7 +3697,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -3754,7 +3754,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -4555,7 +4555,7 @@ dependencies = [ "getrandom 0.4.3", "once_cell", "rustix", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -5301,7 +5301,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 7eb5c37..42135b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,4 +55,4 @@ dsa = "0.6.3" openssl = {version = "0.10.78", features = ["vendored"]} time = "0.3.47" hickory-resolver = { version = "0.24", features = ["tokio-runtime"] } -nex-account = { version = "0.2.3", registry = "spbr" } +nex-account = { version = "0.2.4", registry = "spbr" } diff --git a/src/nnid/provider.rs b/src/nnid/provider.rs index 088f8cb..850b47e 100644 --- a/src/nnid/provider.rs +++ b/src/nnid/provider.rs @@ -114,7 +114,10 @@ pub async fn get_nex_token( let host = host.ip(); let mut client = nex_account::grpc_client().await.unwrap(); - let Ok(key) = client.get_nex_key_by_pid(Pid { pid: auth.pid }).await else { + let Ok(key) = client + .get_nex_key_by_pid_maybe_staged(Pid { pid: auth.pid }) + .await + else { println!("account does not exist on nex-account server"); return Err(Some(SERVER_ERROR)); };