Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move app and networks_config to waku/factory #2608

Merged
merged 2 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/networkmonitor/networkmonitor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import
../../waku/waku_relay,
../../waku/waku_rln_relay,
../../waku/factory/builder,
../wakunode2/networks_config,
../../waku/factory/networks_config,
./networkmonitor_metrics,
./networkmonitor_config,
./networkmonitor_utils
Expand Down
4 changes: 2 additions & 2 deletions apps/wakunode2/wakunode2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import
../../tools/rln_db_inspector/rln_db_inspector,
../../waku/common/logging,
../../waku/factory/external_config,
./networks_config,
./app
../../waku/factory/networks_config,
../../waku/factory/app

logScope:
topics = "wakunode main"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import
../../../../waku/waku_store,
../../../../waku/factory/builder,
../../../../waku/factory/node_factory,
../../../apps/wakunode2/networks_config,
../../../../waku/factory/networks_config,
../../../events/[json_message_event, json_base_event],
../../../alloc,
../../config
Expand Down
2 changes: 1 addition & 1 deletion tests/wakunode2/test_app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import
libp2p/switch
import ../testlib/common, ../testlib/wakucore, ../testlib/wakunode

include ../../apps/wakunode2/app
include ../../waku/factory/app

suite "Wakunode2 - App":
test "compilation version should be reported":
Expand Down
2 changes: 1 addition & 1 deletion apps/wakunode2/app.nim → waku/factory/app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ proc init*(T: type App, conf: WakuNodeConf): Result[App, string] =

## Setup DiscoveryV5

proc setupDiscoveryV5*(app: App): WakuDiscoveryV5 =
proc setupDiscoveryV5(app: App): WakuDiscoveryV5 =
let dynamicBootstrapEnrs =
app.dynamicBootstrapNodes.filterIt(it.hasUdpPort()).mapIt(it.enr.get())

Expand Down
File renamed without changes.
Loading