diff --git a/commons/zenoh-protocol/src/core/mod.rs b/commons/zenoh-protocol/src/core/mod.rs index 250b2d2b3e..7990cada06 100644 --- a/commons/zenoh-protocol/src/core/mod.rs +++ b/commons/zenoh-protocol/src/core/mod.rs @@ -315,7 +315,7 @@ pub enum Priority { impl Priority { /// Default - pub const DEAULT: Self = Self::Data; + pub const DEFAULT: Self = Self::Data; /// The lowest Priority pub const MIN: Self = Self::Background; /// The highest Priority diff --git a/commons/zenoh-protocol/src/network/mod.rs b/commons/zenoh-protocol/src/network/mod.rs index fcea800d53..92b7b7d533 100644 --- a/commons/zenoh-protocol/src/network/mod.rs +++ b/commons/zenoh-protocol/src/network/mod.rs @@ -226,13 +226,13 @@ pub mod ext { const D_FLAG: u8 = 0b00001000; const E_FLAG: u8 = 0b00010000; - pub const DECLARE: Self = Self::new(Priority::DEAULT, CongestionControl::Block, false); - pub const PUSH: Self = Self::new(Priority::DEAULT, CongestionControl::Drop, false); - pub const REQUEST: Self = Self::new(Priority::DEAULT, CongestionControl::Block, false); - pub const RESPONSE: Self = Self::new(Priority::DEAULT, CongestionControl::Block, false); + pub const DECLARE: Self = Self::new(Priority::DEFAULT, CongestionControl::Block, false); + pub const PUSH: Self = Self::new(Priority::DEFAULT, CongestionControl::Drop, false); + pub const REQUEST: Self = Self::new(Priority::DEFAULT, CongestionControl::Block, false); + pub const RESPONSE: Self = Self::new(Priority::DEFAULT, CongestionControl::Block, false); pub const RESPONSE_FINAL: Self = - Self::new(Priority::DEAULT, CongestionControl::Block, false); - pub const OAM: Self = Self::new(Priority::DEAULT, CongestionControl::Block, false); + Self::new(Priority::DEFAULT, CongestionControl::Block, false); + pub const OAM: Self = Self::new(Priority::DEFAULT, CongestionControl::Block, false); pub const fn new( priority: Priority,