refactor(irtt-client): gate functions that are only used with tokio enabled
This commit is contained in:
1 parent
36eaa90e2a
commit
33fe01f252
2 files changed
+4
No files matched your search
@@ -488,6 +488,7 @@ impl SessionMachine {
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "tokio", test))]
|
||||
pub(crate) fn packets_sent(&self) -> u64 {
|
||||
match &self.state {
|
||||
MachineState::Open(session) => session.packets_sent,
|
||||
|
||||
Reference in new issue
Block a user