mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 13:34:26 +00:00
import chronicles otherwise compile breaks
This commit is contained in:
parent
1c3616e3a5
commit
a6eea0c275
@ -10,7 +10,7 @@
|
|||||||
{.push raises: [Defect].}
|
{.push raises: [Defect].}
|
||||||
|
|
||||||
import
|
import
|
||||||
options, tables, chronos, bearssl,
|
options, tables, chronos, chronicles, bearssl,
|
||||||
switch, peerid, peerinfo, stream/connection, multiaddress,
|
switch, peerid, peerinfo, stream/connection, multiaddress,
|
||||||
crypto/crypto, transports/[transport, tcptransport],
|
crypto/crypto, transports/[transport, tcptransport],
|
||||||
muxers/[muxer, mplex/mplex],
|
muxers/[muxer, mplex/mplex],
|
||||||
@ -151,7 +151,7 @@ proc build*(b: SwitchBuilder): Switch
|
|||||||
muxers = block:
|
muxers = block:
|
||||||
var muxers: Table[string, MuxerProvider]
|
var muxers: Table[string, MuxerProvider]
|
||||||
if b.mplexOpts.enable:
|
if b.mplexOpts.enable:
|
||||||
muxers.add(MplexCodec, newMuxerProvider(b.mplexOpts.newMuxer, MplexCodec))
|
muxers[MplexCodec] = newMuxerProvider(b.mplexOpts.newMuxer, MplexCodec)
|
||||||
muxers
|
muxers
|
||||||
|
|
||||||
let
|
let
|
||||||
|
Loading…
x
Reference in New Issue
Block a user