From 9b6938ee5a785cc4e52c3d1fe95fac45d2cc6cea Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 9 Dec 2022 15:26:24 -0400 Subject: [PATCH] fix: add db url flag --- cmd/waku/flags.go | 6 ++++++ cmd/waku/main.go | 1 + 2 files changed, 7 insertions(+) diff --git a/cmd/waku/flags.go b/cmd/waku/flags.go index 7a4bb13b..ebdbb8c9 100644 --- a/cmd/waku/flags.go +++ b/cmd/waku/flags.go @@ -216,6 +216,12 @@ var ( Usage: "maximum number of messages to store. Set to 0 to disable it", Destination: &options.Store.RetentionMaxMessages, } + StoreMessageDBURL = &cli.StringFlag{ + Name: "store-message-db-url", + Usage: "The database connection URL for peristent storage.", + Value: "sqlite://store.sqlite3", + Destination: &options.Store.DatabaseURL, + } StoreResumePeer = &cli.GenericFlag{ Name: "store-resume-peer", Usage: "Peer multiaddress to resume the message store at boot. Option may be repeated", diff --git a/cmd/waku/main.go b/cmd/waku/main.go index b4427295..89a1d06b 100644 --- a/cmd/waku/main.go +++ b/cmd/waku/main.go @@ -49,6 +49,7 @@ func main() { MinRelayPeersToPublish, StoreNodeFlag, StoreFlag, + StoreMessageDBURL, StoreMessageRetentionTime, StoreMessageRetentionCapacity, StoreResumePeer,