Cleanup testinterop imports (#589)
* cleanup exports/imports, specially for testinterop * export pubsub
This commit is contained in:
parent
93156447ba
commit
9e2b464e14
|
@ -27,7 +27,8 @@ import
|
||||||
peerinfo,
|
peerinfo,
|
||||||
multiaddress,
|
multiaddress,
|
||||||
builders,
|
builders,
|
||||||
crypto/crypto]
|
crypto/crypto,
|
||||||
|
protocols/pubsub]
|
||||||
|
|
||||||
import bearssl
|
import bearssl
|
||||||
|
|
||||||
|
@ -36,4 +37,4 @@ export
|
||||||
connection, multiaddress, crypto, lpstream,
|
connection, multiaddress, crypto, lpstream,
|
||||||
bufferstream, bearssl, muxer, mplex, transport,
|
bufferstream, bearssl, muxer, mplex, transport,
|
||||||
tcptransport, noise, errors, cid, multihash,
|
tcptransport, noise, errors, cid, multihash,
|
||||||
multicodec, builders
|
multicodec, builders, pubsub
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
import ./pubsub/[pubsub, floodsub, gossipsub]
|
||||||
|
|
||||||
|
export pubsub, floodsub, gossipsub
|
|
@ -1,35 +1,12 @@
|
||||||
import options, tables
|
import options, tables
|
||||||
import chronos, chronicles, stew/byteutils
|
import chronos, chronicles, stew/byteutils
|
||||||
import helpers
|
import helpers
|
||||||
import ../libp2p/[daemon/daemonapi,
|
import ../libp2p
|
||||||
protobuf/minprotobuf,
|
import ../libp2p/[daemon/daemonapi, varint]
|
||||||
vbuffer,
|
|
||||||
multiaddress,
|
|
||||||
multicodec,
|
|
||||||
cid,
|
|
||||||
varint,
|
|
||||||
multihash,
|
|
||||||
builders,
|
|
||||||
peerid,
|
|
||||||
peerinfo,
|
|
||||||
switch,
|
|
||||||
stream/connection,
|
|
||||||
muxers/muxer,
|
|
||||||
crypto/crypto,
|
|
||||||
muxers/mplex/mplex,
|
|
||||||
muxers/muxer,
|
|
||||||
protocols/protocol,
|
|
||||||
protocols/identify,
|
|
||||||
transports/transport,
|
|
||||||
transports/tcptransport,
|
|
||||||
protocols/secure/secure,
|
|
||||||
protocols/pubsub/pubsub,
|
|
||||||
protocols/pubsub/floodsub,
|
|
||||||
protocols/pubsub/gossipsub]
|
|
||||||
|
|
||||||
type
|
type
|
||||||
# TODO: Unify both PeerInfo structs
|
# TODO: Unify both PeerInfo structs
|
||||||
NativePeerInfo = peerinfo.PeerInfo
|
NativePeerInfo = libp2p.PeerInfo
|
||||||
DaemonPeerInfo = daemonapi.PeerInfo
|
DaemonPeerInfo = daemonapi.PeerInfo
|
||||||
|
|
||||||
proc writeLp*(s: StreamTransport, msg: string | seq[byte]): Future[int] {.gcsafe.} =
|
proc writeLp*(s: StreamTransport, msg: string | seq[byte]): Future[int] {.gcsafe.} =
|
||||||
|
|
Loading…
Reference in New Issue