We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14fee3b commit 417922cCopy full SHA for 417922c
examples/helloworld.nim
@@ -20,7 +20,7 @@ proc new(T: typedesc[TestProto]): T =
20
# We must close the connections ourselves when we're done with it
21
await conn.close()
22
23
- return T(codecs: @[TestCodec], handler: handle)
+ return T.new(codecs = @[TestCodec], handler = handle)
24
25
##
26
# Helper to create a switch/node
0 commit comments