File tree 4 files changed +3
-5
lines changed
4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ impl MonitorHandle {
111
111
"{}" ,
112
112
error. display_chain_with_msg( "Failed to check connectivity status" )
113
113
) ;
114
- Connectivity :: Unknown
114
+ Connectivity :: PresumeOnline
115
115
}
116
116
}
117
117
}
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ pub async fn spawn_monitor(
72
72
"{}" ,
73
73
err. display_chain_with_msg( "Failed to infer offline state" )
74
74
) ;
75
- Connectivity :: Unknown
75
+ Connectivity :: PresumeOnline
76
76
} ) ;
77
77
if new_offline_state != is_offline {
78
78
is_offline = new_offline_state;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ impl MonitorHandle {
37
37
pub async fn connectivity ( & self ) -> Connectivity {
38
38
match self . 0 . as_ref ( ) {
39
39
Some ( monitor) => monitor. connectivity ( ) . await ,
40
- None => Connectivity :: Unknown ,
40
+ None => Connectivity :: PresumeOnline ,
41
41
}
42
42
}
43
43
}
Original file line number Diff line number Diff line change @@ -534,8 +534,6 @@ pub enum Connectivity {
534
534
/// On/offline status could not be verified, but we have no particular
535
535
/// reason to believe that the host is offline.
536
536
PresumeOnline ,
537
- /// Could not verify connectivity status of the host.
538
- Unknown ,
539
537
/// The host is suspended.
540
538
///
541
539
/// If the host is suspended, there is a great likelihood that we should
You can’t perform that action at this time.
0 commit comments