Skip to content

Commit aa1fd34

Browse files
committed
fix!: bypass constants module
twamp_control::ABC instead of twamp_control::constants::ABC
1 parent 6752f18 commit aa1fd34

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

examples/controller/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use clap::Parser;
88
use tracing::*;
99

1010
use controller::Controller;
11-
use twamp_rs::twamp_control::constants::TWAMP_CONTROL_WELL_KNOWN_PORT;
12-
use twamp_rs::twamp_test::constants::TWAMP_TEST_WELL_KNOWN_PORT;
11+
use twamp_rs::twamp_control::TWAMP_CONTROL_WELL_KNOWN_PORT;
12+
use twamp_rs::twamp_test::TWAMP_TEST_WELL_KNOWN_PORT;
1313

1414
#[derive(Parser, Debug)]
1515
#[command(version, about, long_about = None)]

examples/responder/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::{
1010
use tokio::net::{TcpListener, TcpStream};
1111
use tokio::task;
1212
use tracing::*;
13-
use twamp_rs::twamp_control::constants::TWAMP_CONTROL_WELL_KNOWN_PORT;
13+
use twamp_rs::twamp_control::TWAMP_CONTROL_WELL_KNOWN_PORT;
1414

1515
#[derive(Parser, Debug)]
1616
#[command(version, about, long_about = None)]

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use crate::twamp_control::Messages;
12
use crate::twamp_control::accept::Accept;
23
use crate::twamp_control::accept_session::AcceptSession;
3-
use crate::twamp_control::constants::Messages;
44
use crate::twamp_control::request_tw_session::RequestTwSession;
55
use crate::twamp_control::security_mode::Mode;
66
use crate::twamp_control::server_start::ServerStart;

src/twamp_control/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pub mod accept;
22
pub mod accept_session;
33
pub mod command_number;
4-
pub mod constants;
4+
mod constants;
55
pub mod request_tw_session;
66
pub mod security_mode;
77
pub mod server_greeting;
@@ -10,3 +10,5 @@ pub mod set_up_response;
1010
pub mod start_ack;
1111
pub mod start_sessions;
1212
pub mod stop_sessions;
13+
14+
pub use constants::*;

src/twamp_test/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
pub mod constants;
1+
mod constants;
22
pub mod error_estimate;
33
pub mod twamp_test_unauth;
44
pub mod twamp_test_unauth_reflected;
5+
6+
pub use constants::*;

0 commit comments

Comments
 (0)