Feature/unsubscribe from content filter (#255)

Unsubscribe from a content topic

Co-authored-by: Oskar Thorén <ot@oskarthoren.com>
This commit is contained in:
Hanno Cornelius
2020-11-10 09:13:16 +02:00
committed by GitHub
co-authored by Oskar Thorén
parent ea5f9993a7
commit 24f4a087de
7 changed files with 171 additions and 21 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ proc processInput(rfd: AsyncFD, rng: ref BrHmacDrbgContext) {.async.} =
info "Hit filter handler"
await node.subscribe(
FilterRequest(contentFilters: @[ContentFilter(topics: @[DefaultContentTopic])], topic: DefaultTopic),
FilterRequest(contentFilters: @[ContentFilter(topics: @[DefaultContentTopic])], topic: DefaultTopic, subscribe: true),
filterHandler
)