Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
iambriccardo committed Aug 26, 2024
1 parent eadd1ef commit cd90965
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions relay-config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,13 @@ pub enum RelayDeployment {
Canary,
}

impl RelayDeployment {
/// Returns `true` if the [`RelayDeployment`] is of type [`RelayDeployment::Canary`].
pub fn is_canary(&self) -> bool {
matches!(self, RelayDeployment::Canary)
}
}

impl fmt::Display for RelayDeployment {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
Expand Down

0 comments on commit cd90965

Please sign in to comment.