Hooking the new pubsub impl into the application

This commit is contained in:
eikek
2021-11-05 21:01:02 +01:00
parent 4d5c695882
commit f38d520a1d
25 changed files with 379 additions and 188 deletions

View File

@ -79,8 +79,12 @@ object RPubSub {
)
)
def findSubs(topic: String): ConnectionIO[List[LenientUri]] =
run(select(T.url), from(T), T.topic === topic && T.counter > 0)
def findSubs(topic: String, excludeNode: Ident): ConnectionIO[List[LenientUri]] =
run(
select(T.url),
from(T),
T.topic === topic && T.counter > 0 && T.nodeId <> excludeNode
)
.query[LenientUri]
.to[List]
}