refactor(storage): Remove decommissioned path for memory store (#313)

This commit is contained in:
TwiN authored and GitHub committed 2022-08-11 20:42:56 -04:00
1 parent 262d436533
commit f01b66f083
11 files changed
+61 -79

No files matched your search

+1 -9
View File
@@ -110,15 +110,7 @@ func Initialize(cfg *storage.Config) error {
case storage.TypeMemory:
fallthrough
default:
if len(cfg.Path) > 0 {
store, err = memory.NewStore(cfg.Path)
if err != nil {
return err
}
go autoSave(ctx, store, 7*time.Minute)
} else {
store, _ = memory.NewStore("")
}
store, _ = memory.NewStore()
}
return nil
}