mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add functions to get config values
This commit is contained in:
parent
d7f66ffa5c
commit
c2fd2e747a
5 changed files with 72 additions and 12 deletions
|
@ -26,8 +26,8 @@ func Parse() {
|
|||
|
||||
cfg := config.NewConfig()
|
||||
store := storage.NewStorage(
|
||||
cfg.Get("DATABASE_URL", config.DefaultDatabaseURL),
|
||||
cfg.GetInt("DATABASE_MAX_CONNS", config.DefaultDatabaseMaxConns),
|
||||
cfg.DatabaseURL(),
|
||||
cfg.DatabaseMaxConnections(),
|
||||
)
|
||||
|
||||
if *flagInfo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue