mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-27 09:48:09 -07:00
(untested) refactor code, add separate call to create KV-store
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ func (r *Server) Run(cfg *Config) (err error) {
|
||||
log.Info().Msg("metrics disabled because of empty address")
|
||||
}
|
||||
|
||||
r.storage, err = storage.NewStorage(cfg.Storage)
|
||||
r.storage, err = storage.NewPeerStorage(cfg.Storage)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create storage: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user