fix directchat build

This commit is contained in:
Giovanni Petrantoni 2020-07-15 16:20:20 +09:00
parent ef410509e6
commit 73972ec9ce
1 changed files with 1 additions and 1 deletions

View File

@ -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.} =