Skip to content

Commit

Permalink
aclmap remove
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Apr 20, 2024
1 parent 7219463 commit bf16eb8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/aclmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ impl AclMap {
self.smap.subscribe(topic, &());
}
#[inline]
pub fn remove(&mut self, topic: &str) {
self.smap.unsubscribe(topic, &());
}
#[inline]
pub fn matches(&self, topic: &str) -> bool {
self.smap.is_subscribed(topic)
}
Expand Down

0 comments on commit bf16eb8

Please sign in to comment.