Skip to content

Commit

Permalink
add panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Aug 28, 2024
1 parent b338eb7 commit b5cc7b7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions internal/core/persistence/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ func InitPersistence(config *app.Config) *Persistence {
return &Persistence{
storage: s3,
}
} else if config.PersistenceStorageType == "local" {
return &Persistence{
storage: NewLocalWrapper(),
}
} else {
log.Panic("Invalid persistence storage type: %s", config.PersistenceStorageType)
}

return &Persistence{
storage: NewLocalWrapper(),
}
return nil
}

0 comments on commit b5cc7b7

Please sign in to comment.