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…
Reference in New Issue