Skip to content

Commit

Permalink
Fix Priority::DEFAULT typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Feb 9, 2024
1 parent 32a2846 commit 3c79d5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion commons/zenoh-protocol/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions commons/zenoh-protocol/src/network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3c79d5e

Please sign in to comment.