import chronicles otherwise compile breaks

This commit is contained in:
Dmitriy Ryajov 2021-05-25 11:00:48 -06:00
parent 1c3616e3a5
commit a6eea0c275
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
{.push raises: [Defect].}
import
options, tables, chronos, bearssl,
options, tables, chronos, chronicles, bearssl,
switch, peerid, peerinfo, stream/connection, multiaddress,
crypto/crypto, transports/[transport, tcptransport],
muxers/[muxer, mplex/mplex],
@ -151,7 +151,7 @@ proc build*(b: SwitchBuilder): Switch
muxers = block:
var muxers: Table[string, MuxerProvider]
if b.mplexOpts.enable:
muxers.add(MplexCodec, newMuxerProvider(b.mplexOpts.newMuxer, MplexCodec))
muxers[MplexCodec] = newMuxerProvider(b.mplexOpts.newMuxer, MplexCodec)
muxers
let