Skip to content

Commit 4ff1c01

Browse files
Fixup Davids comments
1 parent d67055b commit 4ff1c01

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

talpid-core/src/offline/android.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl MonitorHandle {
111111
"{}",
112112
error.display_chain_with_msg("Failed to check connectivity status")
113113
);
114-
Connectivity::Unknown
114+
Connectivity::PresumeOnline
115115
}
116116
}
117117
}

talpid-core/src/offline/linux.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub async fn spawn_monitor(
7272
"{}",
7373
err.display_chain_with_msg("Failed to infer offline state")
7474
);
75-
Connectivity::Unknown
75+
Connectivity::PresumeOnline
7676
});
7777
if new_offline_state != is_offline {
7878
is_offline = new_offline_state;

talpid-core/src/offline/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl MonitorHandle {
3737
pub async fn connectivity(&self) -> Connectivity {
3838
match self.0.as_ref() {
3939
Some(monitor) => monitor.connectivity().await,
40-
None => Connectivity::Unknown,
40+
None => Connectivity::PresumeOnline,
4141
}
4242
}
4343
}

talpid-types/src/net/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,6 @@ pub enum Connectivity {
534534
/// On/offline status could not be verified, but we have no particular
535535
/// reason to believe that the host is offline.
536536
PresumeOnline,
537-
/// Could not verify connectivity status of the host.
538-
Unknown,
539537
/// The host is suspended.
540538
///
541539
/// If the host is suspended, there is a great likelihood that we should

0 commit comments

Comments
 (0)