Skip to content

Commit

Permalink
fix(postgres): import under feature flag (#2500)
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Mar 6, 2024
1 parent b151672 commit e692edf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions waku/waku_archive/driver/builder.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ import
../../common/error_handling,
./sqlite_driver,
./sqlite_driver/migrations as archive_driver_sqlite_migrations,
./postgres_driver/migrations as archive_postgres_driver_migrations,
./queue_driver

export
sqlite_driver,
queue_driver

when defined(postgres):
import ./postgres_driver ## This import adds dependency with an external libpq library
import ## These imports add dependency with an external libpq library
./postgres_driver/migrations as archive_postgres_driver_migrations,
./postgres_driver
export postgres_driver

proc new*(T: type ArchiveDriver,
Expand Down

0 comments on commit e692edf

Please sign in to comment.