mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-27 07:06:42 +00:00
Remove unused import of ./storage/sqlite from wakunode2
In the `when isMainModule:` section of wakunode2.nim, the module `./storage/message/waku_message_store` is imported, which in turn imports waku's sqlite module and also the sqlite3_abi module from `vendor/`. Outside of the `when isMainModule:` section, imports from waku's sqlite module are not used in wakunode2. However, importing it at the top-level results in the C code underlying sqlite3_abi to be compiled into whatever executable one is building, and this is a problem if nim-waku is being consumed together with another library, e.g. nim-sqlcipher, which links against a different build of sqlite (sqlcipher being a superset of sqlite). The linker step fails with reports of duplicate symbols for sqlite.
This commit is contained in:
parent
c1763362d7
commit
c5da7c8fcd
@ -22,7 +22,6 @@ import
|
||||
../protocol/waku_lightpush/waku_lightpush,
|
||||
../protocol/waku_rln_relay/waku_rln_relay_types,
|
||||
../utils/peers,
|
||||
./storage/sqlite,
|
||||
./storage/message/message_store,
|
||||
./storage/peer/peer_storage,
|
||||
../utils/requests,
|
||||
|
Loading…
x
Reference in New Issue
Block a user