Skip to content

Commit

Permalink
Feature/fix persisted ops startup bug (#107)
Browse files Browse the repository at this point in the history
fix bug that could cause an error on startup with persisted ops enabled

---------

Co-authored-by: Rick Bijkerk <[email protected]>
  • Loading branch information
rickbijkerk and Rick Bijkerk authored Jul 26, 2024
1 parent 01036c2 commit 302679a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func httpServer(log *slog.Logger, cfg *config.Config, shutdown chan os.Signal) e

remoteLoader, err := persistedoperations.RemoteLoaderFromConfig(cfg.PersistedOperations, log)
if err != nil && !errors.Is(err, persistedoperations.ErrNoRemoteLoaderSpecified) {
log.Warn("Error initializing remote loader", "err", err)
log.Error("Error initializing remote loader", "err", err)
return err
}

po, err := persistedoperations.NewPersistedOperations(log, cfg.PersistedOperations, persistedoperations.NewLocalDirLoader(cfg.PersistedOperations, log), remoteLoader)
Expand Down

0 comments on commit 302679a

Please sign in to comment.