Skip to content

Commit

Permalink
iota -> demia
Browse files Browse the repository at this point in the history
  • Loading branch information
DyrellC authored and tsconn23 committed Jan 16, 2024
1 parent 84c13a3 commit 230c095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ impl KeyAlgorithm {
pub struct StreamType(pub String);

lazy_static! {
pub static ref IOTA_STREAM: StreamType = StreamType(String::from("iota"));
pub static ref DEMIA_STREAM: StreamType = StreamType(String::from("demia"));
pub static ref MOCK_STREAM: StreamType = StreamType(String::from("mock"));
pub static ref MQTT_STREAM: StreamType = StreamType(String::from("mqtt"));
}

impl StreamType {
pub fn is_base_stream_type(&self) -> bool {
self == IOTA_STREAM.deref() || self == MOCK_STREAM.deref() || self == MQTT_STREAM.deref()
self == DEMIA_STREAM.deref() || self == MOCK_STREAM.deref() || self == MQTT_STREAM.deref()
}
}
#[derive(PartialEq, Eq, Clone, Debug, Serialize, Deserialize)]
Expand Down

0 comments on commit 230c095

Please sign in to comment.