Skip to content

Commit

Permalink
refactor: move app.nim and networks_config.nim to waku/factory (#2608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivansete-status authored Apr 19, 2024
1 parent 39299ce commit 1ba9df4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
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.

0 comments on commit 1ba9df4

Please sign in to comment.