shitfuck
This commit is contained in:
parent
1a97c35e22
commit
704d0e8750
4 changed files with 49 additions and 1 deletions
7
main.go
7
main.go
|
@ -36,6 +36,13 @@ func main() {
|
|||
log.Fatal().Err(err).Msg("Failed to start cache")
|
||||
}
|
||||
|
||||
// var store *storage.Storage
|
||||
// if config.GlobalConfig.Storage.DbIsPostgres != nil && *config.GlobalConfig.Storage.DbIsPostgres {
|
||||
// store, err = storage.NewStoragePostgres(config.GlobalConfig.Storage.DatabaseUrl, storageCache)
|
||||
// } else {
|
||||
// store, err = storage.NewStorageSqlite(config.GlobalConfig.Storage.DatabaseUrl, storageCache)
|
||||
// }
|
||||
//
|
||||
store, err := storage.NewStorage(config.GlobalConfig.Storage.BuildPostgresDSN(), storageCache)
|
||||
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue