More exports cleanup (#522)
* annotate `SecureProtocol.Secio` as deprecated * dont export varint * add `errors` to exports - convenient error utils
This commit is contained in:
parent
fff54fa23c
commit
f4145ebbfa
|
@ -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
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue