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