(untested) refactor code, add separate call to create KV-store

This commit is contained in:
Lawrence, Rendall
2024-05-20 18:28:40 +03:00
parent 837b388b2f
commit 2f01a7cfc8
13 changed files with 164 additions and 87 deletions
+1 -1
View File
@@ -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)
}