Skip to content

Commit

Permalink
Merge pull request #70 from ethpandaops/fix/persistence-disabled
Browse files Browse the repository at this point in the history
fix(server): early return config check for persistence
  • Loading branch information
Savid authored Feb 21, 2023
2 parents 0877157 + bf690a9 commit 17805dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/server/persistence/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ type Config struct {
}

func (e *Config) Validate() error {
if !e.Enabled {
return nil
}

if e.ConnectionString == "" {
return errors.New("connectionString is required")
}
Expand Down

0 comments on commit 17805dc

Please sign in to comment.