mirror of https://github.com/waku-org/nwaku.git
fix: libwaku.nim: unsubscribe -> unsubscribeAll to make it build properly (#2082)
* libwaku.nim: unsubscribe -> unsubscribeAll to make it build properly We introduced a change in the next PR https://github.com/waku-org/nwaku/pull/1983/ that made the `libwaku` to stop building properly (make libwaku) because a signature change in the `unsubscribe` proc of waku/waku_relay/protocol.nim. This commit is a temporary workaround to make it work, and not block any ongoing PR tests, although not exactly as it is expected because we are unsubscribing from all topics. * ci.yml: adds library/** to force tests when changes under that folder
This commit is contained in:
parent
6cb9a8da86
commit
3264a4f587
|
@ -33,6 +33,7 @@ jobs:
|
||||||
- 'vendor/**'
|
- 'vendor/**'
|
||||||
- 'Makefile'
|
- 'Makefile'
|
||||||
- 'waku.nimble'
|
- 'waku.nimble'
|
||||||
|
- 'library/**'
|
||||||
|
|
||||||
v2:
|
v2:
|
||||||
- 'waku/**'
|
- 'waku/**'
|
||||||
|
|
|
@ -99,7 +99,8 @@ proc process*(self: ptr RelayRequest,
|
||||||
node.wakuRelay.subscribe($self.pubsubTopic, self.relayEventCallback)
|
node.wakuRelay.subscribe($self.pubsubTopic, self.relayEventCallback)
|
||||||
|
|
||||||
of UNSUBSCRIBE:
|
of UNSUBSCRIBE:
|
||||||
node.wakuRelay.unsubscribe($self.pubsubTopic)
|
# TODO: properly perform 'unsubscribe'
|
||||||
|
node.wakuRelay.unsubscribeAll($self.pubsubTopic)
|
||||||
|
|
||||||
of PUBLISH:
|
of PUBLISH:
|
||||||
let numPeers = await node.wakuRelay.publish($self.pubsubTopic,
|
let numPeers = await node.wakuRelay.publish($self.pubsubTopic,
|
||||||
|
|
Loading…
Reference in New Issue