-
Notifications
You must be signed in to change notification settings - Fork 20
Reconnect mixnet on ws connection loss #1711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 4 files at r1.
Reviewable status: 1 of 4 files reviewed, 1 unresolved discussion (waiting on @doums, @neacsu, @octol, @rokas-ambrazevicius, and @zaneschepke)
nym-vpn-core/crates/nym-vpn-lib/src/tunnel_state_machine/tunnel/mod.rs
line 163 at r1 (raw file):
}; let mut mixnet_client_config = options.clone().mixnet_client_config.unwrap_or_default();
Nit: Probably better to clone mixnet_client_config instead of all options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 4 files at r1, 2 of 2 files at r2.
Reviewable status: all files reviewed (commit messages unreviewed), 2 unresolved discussions (waiting on @doums, @neacsu, @octol, @rokas-ambrazevicius, and @zaneschepke)
nym-vpn-core/crates/nym-vpn-lib/src/bandwidth_controller.rs
line 20 at r2 (raw file):
}; use nym_wg_gateway_client::{ErrorMessage, GatewayData, WgGatewayClient, WgGatewayLightClient}; use tokio_util::sync::CancellationToken;
Nit I started doing use separation using the following pattern:
use std::...
// external
use tokio::...
// workspace crates
use nym_*::...
// inside of executable/lib
use super::...
Not sure if you like it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 4 files reviewed, 1 unresolved discussion (waiting on @doums, @octol, @pronebird, and @rokas-ambrazevicius)
nym-vpn-core/crates/nym-vpn-lib/src/bandwidth_controller.rs
line 20 at r2 (raw file):
Previously, pronebird (Andrej Mihajlov) wrote…
Nit I started doing use separation using the following pattern:
use std::... // external use tokio::... // workspace crates use nym_*::... // inside of executable/lib use super::...Not sure if you like it.
I like it, I was trying to do something similar, but not very consistently. Applied it here, will try to apply it more in the future as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I say if it works, ship it! :)
Possibly we can take a stab at integrating it further into the state machine later, but I'm not really up to date on what's the best approach there
4c995f8
to
5a9545b
Compare
This change is