fix directchat build
This commit is contained in:
parent
ef410509e6
commit
73972ec9ce
|
@ -125,7 +125,7 @@ proc readWriteLoop(p: ChatProto) {.async.} =
|
|||
asyncCheck p.readAndPrint()
|
||||
|
||||
proc newChatProto(switch: Switch, transp: StreamTransport): ChatProto =
|
||||
var chatproto = ChatProto(switch: switch, transp: transp, codec: ChatCodec)
|
||||
var chatproto = ChatProto(switch: switch, transp: transp, codecs: @[ChatCodec])
|
||||
|
||||
# create handler for incoming connection
|
||||
proc handle(stream: Connection, proto: string) {.async.} =
|
||||
|
|
Loading…
Reference in New Issue