mirror of
https://github.com/ratspeak/rsReticulum
synced 2026-11-27 13:52:16 +00:00
ci: retain Linux pairing error stages
This commit is contained in:
1 parent
d3c28b1247
commit
199eeb43cb
2 files changed
+27
-41
No files matched your search
@@ -504,12 +504,15 @@ enum DesktopPairingTrigger {
|
||||
target_os = "android"
|
||||
))]
|
||||
impl DesktopPairingTrigger {
|
||||
#[cfg(any(
|
||||
target_os = "ios",
|
||||
target_os = "macos",
|
||||
target_os = "windows",
|
||||
target_os = "android"
|
||||
))]
|
||||
#[cfg_attr(
|
||||
not(any(
|
||||
target_os = "ios",
|
||||
target_os = "macos",
|
||||
target_os = "windows",
|
||||
target_os = "android"
|
||||
)),
|
||||
allow(dead_code)
|
||||
)]
|
||||
const fn label(self) -> &'static str {
|
||||
match self {
|
||||
Self::EncryptedRead => "encrypted_read",
|
||||
|
||||
@@ -28,21 +28,25 @@ pub(super) enum BleOperationStage {
|
||||
Connect,
|
||||
ConnectedCheck,
|
||||
Discovery,
|
||||
#[cfg(any(
|
||||
test,
|
||||
target_os = "ios",
|
||||
target_os = "macos",
|
||||
target_os = "windows",
|
||||
target_os = "android"
|
||||
))]
|
||||
#[cfg_attr(
|
||||
not(any(
|
||||
target_os = "ios",
|
||||
target_os = "macos",
|
||||
target_os = "windows",
|
||||
target_os = "android"
|
||||
)),
|
||||
allow(dead_code)
|
||||
)]
|
||||
PairingRead,
|
||||
#[cfg(any(
|
||||
test,
|
||||
target_os = "ios",
|
||||
target_os = "macos",
|
||||
target_os = "windows",
|
||||
target_os = "android"
|
||||
))]
|
||||
#[cfg_attr(
|
||||
not(any(
|
||||
target_os = "ios",
|
||||
target_os = "macos",
|
||||
target_os = "windows",
|
||||
target_os = "android"
|
||||
)),
|
||||
allow(dead_code)
|
||||
)]
|
||||
PairingSubscribe,
|
||||
Subscribe,
|
||||
NotificationAcquisition,
|
||||
@@ -56,13 +60,6 @@ pub(super) enum BleOperationStage {
|
||||
impl BleOperationStage {
|
||||
pub(super) const fn deadline(self) -> Duration {
|
||||
match self {
|
||||
#[cfg(any(
|
||||
test,
|
||||
target_os = "ios",
|
||||
target_os = "macos",
|
||||
target_os = "windows",
|
||||
target_os = "android"
|
||||
))]
|
||||
Self::PairingRead | Self::PairingSubscribe => Duration::from_secs(60),
|
||||
Self::ActiveWrite => Duration::from_secs(5),
|
||||
Self::Disconnect => Duration::from_secs(3),
|
||||
@@ -84,21 +81,7 @@ impl fmt::Display for BleOperationStage {
|
||||
Self::Connect => "connect",
|
||||
Self::ConnectedCheck => "connected check",
|
||||
Self::Discovery => "service discovery",
|
||||
#[cfg(any(
|
||||
test,
|
||||
target_os = "ios",
|
||||
target_os = "macos",
|
||||
target_os = "windows",
|
||||
target_os = "android"
|
||||
))]
|
||||
Self::PairingRead => "pairing read",
|
||||
#[cfg(any(
|
||||
test,
|
||||
target_os = "ios",
|
||||
target_os = "macos",
|
||||
target_os = "windows",
|
||||
target_os = "android"
|
||||
))]
|
||||
Self::PairingSubscribe => "pairing notification subscribe",
|
||||
Self::Subscribe => "notification subscribe",
|
||||
Self::NotificationAcquisition => "notification acquisition",
|
||||
|
||||
Reference in new issue
Block a user