mirror of https://github.com/waku-org/nwaku.git
chore(peer_manager): added peer_manager barrel module
This commit is contained in:
parent
e56dbd06d8
commit
8ba36e2dfa
|
@ -29,7 +29,7 @@ import
|
|||
../../waku/v2/protocol/waku_store,
|
||||
../../waku/v2/node/[waku_node, waku_payload, waku_metrics],
|
||||
../../waku/v2/node/dnsdisc/waku_dnsdisc,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/utils/[peers, time],
|
||||
../../waku/common/utils/nat,
|
||||
./config_chat2
|
||||
|
|
|
@ -28,7 +28,7 @@ import
|
|||
../../waku/v2/utils/time,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/node/waku_node,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/node/jsonrpc/[debug_api,
|
||||
filter_api,
|
||||
relay_api,
|
||||
|
|
|
@ -25,7 +25,7 @@ import
|
|||
../../waku/common/sqlite,
|
||||
../../waku/common/utils/nat,
|
||||
../../waku/common/logging,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/node/peer_manager/peer_store/waku_peer_storage,
|
||||
../../waku/v2/node/peer_manager/peer_store/migrations as peer_store_sqlite_migrations,
|
||||
../../waku/v2/node/dnsdisc/waku_dnsdisc,
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
import
|
||||
../../../waku/common/logging,
|
||||
../../../waku/v2/node/discv5/waku_discv5,
|
||||
../../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../../waku/v2/node/peer_manager,
|
||||
../../../waku/v2/node/waku_node,
|
||||
../../../waku/v2/protocol/waku_message,
|
||||
../../../waku/v2/utils/time,
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
import
|
||||
../../../waku/common/logging,
|
||||
../../../waku/v2/node/discv5/waku_discv5,
|
||||
../../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../../waku/v2/node/peer_manager,
|
||||
../../../waku/v2/node/waku_node,
|
||||
../../../waku/v2/protocol/waku_message,
|
||||
../../../waku/v2/utils/wakuenr
|
||||
|
|
|
@ -14,7 +14,7 @@ import
|
|||
libp2p/protocols/pubsub/rpc/message
|
||||
import
|
||||
../../waku/v1/node/rpc/hexstrings,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/node/waku_node,
|
||||
../../waku/v2/node/jsonrpc/[store_api,
|
||||
relay_api,
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
eth/keys,
|
||||
discovery/dnsdisc/builder
|
||||
import
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/node/dnsdisc/waku_dnsdisc,
|
||||
../../waku/v2/node/waku_node,
|
||||
../test_helpers
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
chronos,
|
||||
libp2p/crypto/crypto
|
||||
import
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/protocol/waku_filter,
|
||||
../../waku/v2/protocol/waku_filter/client,
|
||||
|
|
|
@ -6,7 +6,7 @@ import
|
|||
chronos,
|
||||
libp2p/crypto/crypto
|
||||
import
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/protocol/waku_lightpush,
|
||||
../../waku/v2/protocol/waku_lightpush/client,
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
eth/p2p/discoveryv5/enr
|
||||
import
|
||||
../../waku/v2/node/waku_node,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/node/discv5/waku_discv5,
|
||||
../../waku/v2/protocol/waku_peer_exchange,
|
||||
../../waku/v2/protocol/waku_peer_exchange/rpc,
|
||||
|
|
|
@ -16,7 +16,7 @@ import
|
|||
libp2p/nameresolving/mockresolver
|
||||
import
|
||||
../../waku/v2/node/waku_node,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/protocol/waku_relay,
|
||||
../../waku/v2/utils/peers
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
chronos,
|
||||
libp2p/crypto/crypto
|
||||
import
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/node/waku_node,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/utils/peers,
|
||||
|
|
|
@ -10,7 +10,7 @@ import
|
|||
import
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/protocol/waku_lightpush,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/utils/peers,
|
||||
../../waku/v2/node/waku_node,
|
||||
./testlib/common
|
||||
|
|
|
@ -17,7 +17,7 @@ import
|
|||
libp2p/protocols/pubsub/gossipsub
|
||||
import
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/utils/peers,
|
||||
../../waku/v2/node/waku_node
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ import
|
|||
libp2p/crypto/crypto
|
||||
import
|
||||
../../../waku/common/sqlite,
|
||||
../../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../../waku/v2/protocol/waku_message,
|
||||
../../../waku/v2/protocol/waku_archive/driver/sqlite_driver,
|
||||
../../../waku/v2/protocol/waku_archive,
|
||||
|
|
|
@ -9,7 +9,7 @@ import
|
|||
import
|
||||
../../waku/common/sqlite,
|
||||
../../waku/v2/node/message_store/sqlite_store,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/protocol/waku_store,
|
||||
./testlib/common,
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
chronicles,
|
||||
libp2p/crypto/crypto
|
||||
import
|
||||
../../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../../waku/v2/node/peer_manager,
|
||||
../../../waku/v2/protocol/waku_message,
|
||||
../../../waku/v2/protocol/waku_store,
|
||||
../../../waku/v2/protocol/waku_store/client,
|
||||
|
|
|
@ -14,7 +14,7 @@ import
|
|||
libp2p/protocols/pubsub/gossipsub
|
||||
import
|
||||
../../../waku/common/sqlite,
|
||||
../../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../../waku/v2/node/peer_manager,
|
||||
../../../waku/v2/protocol/waku_message,
|
||||
../../../waku/v2/protocol/waku_archive,
|
||||
../../../waku/v2/protocol/waku_archive/driver/sqlite_driver,
|
||||
|
|
|
@ -22,7 +22,7 @@ import
|
|||
../../waku/v2/node/discv5/waku_discv5,
|
||||
../../apps/wakunode2/wakunode2,
|
||||
../../waku/v2/node/dnsdisc/waku_dnsdisc,
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/node/waku_node,
|
||||
../../waku/v2/utils/wakuenr,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
|
|
|
@ -10,7 +10,7 @@ import
|
|||
libp2p/nameresolving/nameresolver,
|
||||
libp2p/nameresolving/dnsresolver
|
||||
import
|
||||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/utils/peers,
|
||||
../../waku/v2/node/waku_node,
|
||||
../../waku/v2/node/waku_payload,
|
||||
|
|
|
@ -13,7 +13,7 @@ import
|
|||
../../protocol/waku_filter,
|
||||
../../protocol/waku_relay,
|
||||
../../protocol/waku_swap/waku_swap,
|
||||
../peer_manager/peer_manager,
|
||||
../peer_manager,
|
||||
../waku_node,
|
||||
./jsonrpc_types
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
../../protocol/waku_store/rpc,
|
||||
../../utils/time,
|
||||
../waku_node,
|
||||
../peer_manager/peer_manager,
|
||||
../peer_manager,
|
||||
./jsonrpc_types,
|
||||
./jsonrpc_utils
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import
|
||||
./peer_manager/peer_manager
|
||||
|
||||
export
|
||||
peer_manager
|
|
@ -12,7 +12,7 @@ import
|
|||
import
|
||||
../protocol/waku_filter/protocol_metrics as filter_metrics,
|
||||
../utils/collector,
|
||||
./peer_manager/peer_manager,
|
||||
./peer_manager,
|
||||
./waku_node
|
||||
|
||||
when defined(rln):
|
||||
|
|
|
@ -39,7 +39,7 @@ import
|
|||
../utils/peers,
|
||||
../utils/wakuenr,
|
||||
../utils/time,
|
||||
./peer_manager/peer_manager,
|
||||
./peer_manager,
|
||||
./dnsdisc/waku_dnsdisc,
|
||||
./discv5/waku_discv5,
|
||||
./wakuswitch
|
||||
|
|
|
@ -13,7 +13,7 @@ import
|
|||
libp2p/protocols/protocol as libp2p_protocol
|
||||
import
|
||||
../waku_message,
|
||||
../../node/peer_manager/peer_manager,
|
||||
../../node/peer_manager,
|
||||
../../utils/requests,
|
||||
./rpc,
|
||||
./rpc_codec,
|
||||
|
|
|
@ -9,7 +9,7 @@ import
|
|||
libp2p/crypto/crypto
|
||||
import
|
||||
../waku_message,
|
||||
../../node/peer_manager/peer_manager,
|
||||
../../node/peer_manager,
|
||||
./rpc,
|
||||
./rpc_codec,
|
||||
./protocol_metrics
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
metrics,
|
||||
bearssl/rand
|
||||
import
|
||||
../../node/peer_manager/peer_manager,
|
||||
../../node/peer_manager,
|
||||
../../utils/requests,
|
||||
../waku_message,
|
||||
./protocol,
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
metrics,
|
||||
bearssl/rand
|
||||
import
|
||||
../../node/peer_manager/peer_manager,
|
||||
../../node/peer_manager,
|
||||
../waku_message,
|
||||
./rpc,
|
||||
./rpc_codec,
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
libp2p/crypto/crypto,
|
||||
eth/p2p/discoveryv5/enr
|
||||
import
|
||||
../../node/peer_manager/peer_manager,
|
||||
../../node/peer_manager,
|
||||
../../node/discv5/waku_discv5,
|
||||
../waku_message,
|
||||
../waku_relay,
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
metrics,
|
||||
bearssl/rand
|
||||
import
|
||||
../../node/peer_manager/peer_manager,
|
||||
../../node/peer_manager,
|
||||
../../utils/requests,
|
||||
../../utils/time,
|
||||
../waku_message,
|
||||
|
|
|
@ -18,7 +18,7 @@ import
|
|||
libp2p/stream/connection,
|
||||
metrics
|
||||
import
|
||||
../../node/peer_manager/peer_manager,
|
||||
../../node/peer_manager,
|
||||
../../utils/time,
|
||||
../waku_message,
|
||||
./common,
|
||||
|
|
|
@ -43,7 +43,7 @@ import
|
|||
libp2p/protocols/protocol,
|
||||
libp2p/protobuf/minprotobuf,
|
||||
libp2p/stream/connection,
|
||||
../../node/peer_manager/peer_manager,
|
||||
../../node/peer_manager,
|
||||
./waku_swap_types,
|
||||
../../../common/protobuf,
|
||||
../../waku/v2/protocol/waku_swap/waku_swap_contracts
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
std/tables,
|
||||
bearssl/rand,
|
||||
libp2p/protocols/protocol,
|
||||
../../node/peer_manager/peer_manager
|
||||
../../node/peer_manager
|
||||
|
||||
const
|
||||
MaxChequeSize* = 64*1024 # Used for read buffers. 64kB should be more than enough for swap cheque
|
||||
|
|
Loading…
Reference in New Issue