fix: add db url flag

This commit is contained in:
Richard Ramos 2022-12-09 15:26:24 -04:00
parent d64c4aedc4
commit 9b6938ee5a
No known key found for this signature in database
GPG Key ID: BD36D48BC9FFC88C
2 changed files with 7 additions and 0 deletions

View File

@ -216,6 +216,12 @@ var (
Usage: "maximum number of messages to store. Set to 0 to disable it", Usage: "maximum number of messages to store. Set to 0 to disable it",
Destination: &options.Store.RetentionMaxMessages, 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{ StoreResumePeer = &cli.GenericFlag{
Name: "store-resume-peer", Name: "store-resume-peer",
Usage: "Peer multiaddress to resume the message store at boot. Option may be repeated", Usage: "Peer multiaddress to resume the message store at boot. Option may be repeated",

View File

@ -49,6 +49,7 @@ func main() {
MinRelayPeersToPublish, MinRelayPeersToPublish,
StoreNodeFlag, StoreNodeFlag,
StoreFlag, StoreFlag,
StoreMessageDBURL,
StoreMessageRetentionTime, StoreMessageRetentionTime,
StoreMessageRetentionCapacity, StoreMessageRetentionCapacity,
StoreResumePeer, StoreResumePeer,