mirror of https://github.com/waku-org/nwaku.git
Fix initPubSub call
This commit is contained in:
parent
edd0074ff7
commit
2dda8fe3c0
|
@ -42,6 +42,7 @@ proc newStandardSwitch*(privKey = none(PrivateKey),
|
|||
else:
|
||||
# Creating switch from generate node
|
||||
# XXX: Hacky test, hijacking WakuSub here
|
||||
echo "Using WakuSub here"
|
||||
PubSub newPubSub(WakuSub, peerInfo, triggerSelf)
|
||||
|
||||
result = newSwitch(peerInfo,
|
||||
|
|
|
@ -41,8 +41,7 @@ method init(w: WakuSub) =
|
|||
w.handler = handler
|
||||
w.codec = WakuSubCodec
|
||||
|
||||
# Never hit, it seems like BUT initPubSub is hit
|
||||
method initWakuSub*(w: WakuSub) =
|
||||
method initPubSub*(w: WakuSub) =
|
||||
echo "initWakuSub"
|
||||
w.text = "Foobar"
|
||||
w.init()
|
||||
|
|
Loading…
Reference in New Issue