mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-21 01:39:39 +00:00
refactor(wakunode): remove libp2p builders export from wakunode
This commit is contained in:
parent
2fcdaa3863
commit
7ce48aae4d
@ -10,6 +10,7 @@ import
|
|||||||
../../../waku/common/utils/matterbridge_client,
|
../../../waku/common/utils/matterbridge_client,
|
||||||
# Waku v2 imports
|
# Waku v2 imports
|
||||||
libp2p/crypto/crypto,
|
libp2p/crypto/crypto,
|
||||||
|
libp2p/errors,
|
||||||
../../../waku/v2/node/wakunode2,
|
../../../waku/v2/node/wakunode2,
|
||||||
# Chat 2 imports
|
# Chat 2 imports
|
||||||
../chat2,
|
../chat2,
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import
|
|||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
chronicles,
|
chronicles,
|
||||||
chronos,
|
chronos,
|
||||||
|
libp2p/peerid,
|
||||||
libp2p/crypto/crypto,
|
libp2p/crypto/crypto,
|
||||||
libp2p/protocols/pubsub/gossipsub
|
libp2p/protocols/pubsub/gossipsub
|
||||||
import
|
import
|
||||||
|
|||||||
@ -5,6 +5,8 @@ import
|
|||||||
chronicles,
|
chronicles,
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
presto,
|
presto,
|
||||||
|
libp2p/peerid,
|
||||||
|
libp2p/multiaddress,
|
||||||
libp2p/crypto/crypto
|
libp2p/crypto/crypto
|
||||||
import
|
import
|
||||||
../../waku/v2/node/wakunode2,
|
../../waku/v2/node/wakunode2,
|
||||||
|
|||||||
@ -6,6 +6,8 @@ import
|
|||||||
metrics, metrics/chronos_httpserver,
|
metrics, metrics/chronos_httpserver,
|
||||||
stew/byteutils,
|
stew/byteutils,
|
||||||
stew/shims/net as stewNet, json_rpc/rpcserver,
|
stew/shims/net as stewNet, json_rpc/rpcserver,
|
||||||
|
libp2p/errors,
|
||||||
|
libp2p/peerstore,
|
||||||
# Waku v1 imports
|
# Waku v1 imports
|
||||||
eth/[keys, p2p], eth/common/utils,
|
eth/[keys, p2p], eth/common/utils,
|
||||||
eth/p2p/[enode, peer_pool],
|
eth/p2p/[enode, peer_pool],
|
||||||
|
|||||||
@ -31,7 +31,6 @@ import
|
|||||||
./wakunode2_types
|
./wakunode2_types
|
||||||
|
|
||||||
export
|
export
|
||||||
builders,
|
|
||||||
waku_message,
|
waku_message,
|
||||||
waku_rln_relay_types,
|
waku_rln_relay_types,
|
||||||
wakunode2_types
|
wakunode2_types
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
{.push raises: [Defect].}
|
{.push raises: [Defect].}
|
||||||
|
|
||||||
import
|
import
|
||||||
|
stew/results,
|
||||||
chronicles,
|
chronicles,
|
||||||
./storage/sqlite,
|
./storage/sqlite,
|
||||||
./storage/migration/migration_types,
|
./storage/migration/migration_types,
|
||||||
./config,
|
./config
|
||||||
./wakunode2
|
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topics = "wakunode.setup.migrations"
|
topics = "wakunode.setup.migrations"
|
||||||
@ -23,7 +23,7 @@ proc runMigrations*(sqliteDatabase: SqliteDatabase, conf: WakuNodeConf) =
|
|||||||
|
|
||||||
info "running migration ...", migrationPath=migrationPath
|
info "running migration ...", migrationPath=migrationPath
|
||||||
let migrationResult = sqliteDatabase.migrate(migrationPath)
|
let migrationResult = sqliteDatabase.migrate(migrationPath)
|
||||||
if migrationResult.isErr:
|
if migrationResult.isErr():
|
||||||
warn "migration failed", error=migrationResult.error
|
warn "migration failed", error=migrationResult.error()
|
||||||
else:
|
else:
|
||||||
info "migration is done"
|
info "migration is done"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user