Minor fix

This commit is contained in:
TwinProduction 2021-02-20 19:00:47 -05:00
parent e7c4d03c22
commit a89bb392ed

View File

@ -36,6 +36,9 @@ func Initialize(cfg *Config) error {
if cfg == nil || len(cfg.File) == 0 {
log.Println("[storage][Initialize] Creating storage provider")
provider, err = memory.NewStore("")
if err != nil {
return err
}
} else {
log.Printf("[storage][Initialize] Creating storage provider with file=%s", cfg.File)
provider, err = memory.NewStore(cfg.File)