More exports cleanup (#522)

* annotate `SecureProtocol.Secio` as deprecated

* dont export varint

* add `errors` to exports - convenient error utils
This commit is contained in:
Dmitriy Ryajov 2021-02-09 15:41:49 -06:00 committed by GitHub
parent fff54fa23c
commit f4145ebbfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ import
transports/transport, transports/transport,
transports/tcptransport, transports/tcptransport,
protocols/secure/noise, protocols/secure/noise,
varint, errors,
switch, switch,
peerid, peerid,
peerinfo, peerinfo,
@ -27,7 +27,7 @@ import
import bearssl import bearssl
export export
minprotobuf, varint,switch, peerid, peerinfo, minprotobuf, switch, peerid, peerinfo,
connection, multiaddress, crypto, lpstream, connection, multiaddress, crypto, lpstream,
bufferstream, bearssl, muxer, mplex, transport, bufferstream, bearssl, muxer, mplex, transport,
tcptransport, noise tcptransport, noise, errors

View File

@ -9,7 +9,7 @@ import connmanager
type type
SecureProtocol* {.pure.} = enum SecureProtocol* {.pure.} = enum
Noise, Noise,
Secio # deprecated Secio {.deprecated.}
proc newStandardSwitch*(privKey = none(PrivateKey), proc newStandardSwitch*(privKey = none(PrivateKey),
address = MultiAddress.init("/ip4/127.0.0.1/tcp/0").tryGet(), address = MultiAddress.init("/ip4/127.0.0.1/tcp/0").tryGet(),