Fix initPubSub call

This commit is contained in:
Oskar Thoren 2020-05-11 12:20:07 +08:00
parent edd0074ff7
commit 2dda8fe3c0
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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()