mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-06-06 14:10:02 +00:00
libp2p v2.0.0 dropped the `newStandardSwitch` convenience constructor.
Update `wakucore.newTestSwitch` to use the equivalent SwitchBuilder
chain (`withRng(...).withPrivateKey(...).withAddress(...).withTcp
Transport().withMplex().withNoise().build()`) and replace direct
`newStandardSwitch(...)` call sites in tests with `newTestSwitch(...)`.
Files:
- tests/testlib/wakucore.nim: rewrite `newTestSwitch` body.
- tests/waku_filter_v2/test_waku_filter_dos_protection.nim (2 sites)
- tests/waku_filter_v2/test_waku_client.nim (6 sites)
- tests/wakunode_rest/test_rest_store.nim (6 sites, also rewrite
`Opt.some(key)` → `some(key)` since `newTestSwitch` takes
`std/options.Option`).