mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 22:43:09 +00:00
Fix initPubSub call
This commit is contained in:
parent
ddddf0fdc0
commit
e66d8c4730
@ -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…
x
Reference in New Issue
Block a user