Skip to content

Commit 9f0e90f

Browse files
authored
Extend GatewayClient for use downstream in clients (#168)
* Expose fetching low latency gateway directly * Functions for getting all countries
1 parent 5fda804 commit 9f0e90f

5 files changed

Lines changed: 135 additions & 66 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nym-vpn-desktop/src-tauri/Cargo.lock

Lines changed: 41 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nym-vpn-lib/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ bytes = "1.0"
1818
default-net = "0.21.0"
1919
futures = "0.3.15"
2020
ipnetwork = "0.16"
21+
itertools = "0.12.1"
2122
lazy_static = "1.4.0"
2223
log = "0.4.20"
2324
rand = "0.7.3"
@@ -30,8 +31,8 @@ tokio = { workspace = true, features = ["process", "rt-multi-thread", "fs", "syn
3031
tokio-util = { version = "0.7.10", features = ["codec"] }
3132
tracing = "0.1"
3233
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
33-
uniffi = { version = "0.26.1", features = ["cli"] }
3434
tun2 = { version = "1.2.3", features = ["async"] }
35+
uniffi = { version = "0.26.1", features = ["cli"] }
3536
url = "2.4"
3637

3738
# Used in order to correctly import rustls for sub-dependencies

nym-vpn-lib/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ pub enum Error {
150150
#[error("failed to select gateway based on low latency: {source}")]
151151
FailedToSelectGatewayBasedOnLowLatency { source: ClientCoreError },
152152

153-
#[error("failed to select entry gateway randomly")]
154-
FailedToSelectEntryGatewayRandomly,
153+
#[error("failed to select gateway randomly")]
154+
FailedToSelectGatewayRandomly,
155155

156156
#[error("deadlock when trying to aquire mixnet client mutes")]
157157
MixnetClientDeadlock,

0 commit comments

Comments
 (0)