From f4145ebbfac9b818e1bbe993251b4ccf68ca7216 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 9 Feb 2021 15:41:49 -0600 Subject: [PATCH] More exports cleanup (#522) * annotate `SecureProtocol.Secio` as deprecated * dont export varint * add `errors` to exports - convenient error utils --- libp2p.nim | 6 +++--- libp2p/standard_setup.nim | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libp2p.nim b/libp2p.nim index 1032775c4..c53506a11 100644 --- a/libp2p.nim +++ b/libp2p.nim @@ -17,7 +17,7 @@ import transports/transport, transports/tcptransport, protocols/secure/noise, - varint, + errors, switch, peerid, peerinfo, @@ -27,7 +27,7 @@ import import bearssl export - minprotobuf, varint,switch, peerid, peerinfo, + minprotobuf, switch, peerid, peerinfo, connection, multiaddress, crypto, lpstream, bufferstream, bearssl, muxer, mplex, transport, - tcptransport, noise + tcptransport, noise, errors diff --git a/libp2p/standard_setup.nim b/libp2p/standard_setup.nim index d0f4fc888..758d53557 100644 --- a/libp2p/standard_setup.nim +++ b/libp2p/standard_setup.nim @@ -9,7 +9,7 @@ import connmanager type SecureProtocol* {.pure.} = enum Noise, - Secio # deprecated + Secio {.deprecated.} proc newStandardSwitch*(privKey = none(PrivateKey), address = MultiAddress.init("/ip4/127.0.0.1/tcp/0").tryGet(),