mirror of
https://github.com/waku-org/waku-rust-bindings.git
synced 2025-01-12 23:54:15 +00:00
Add constructor to filter subscription (#34)
This commit is contained in:
parent
b26eb9b22e
commit
d4136fd72b
@ -209,6 +209,13 @@ pub struct FilterSubscription {
|
||||
}
|
||||
|
||||
impl FilterSubscription {
|
||||
pub fn new(content_filters: Vec<ContentFilter>, pubsub_topic: Option<WakuPubSubTopic>) -> Self {
|
||||
Self {
|
||||
content_filters,
|
||||
pubsub_topic,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn content_filters(&self) -> &[ContentFilter] {
|
||||
&self.content_filters
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user