Skip to content

Commit

Permalink
✨ feat: default local config (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwnmengjing authored Feb 21, 2024
1 parent 2d5f03f commit 0f59128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func setup() error {
source.WithProvider(source.Local),
}
switch source.Provider(configProvider) {
case source.GORM, "":
case source.GORM:
opts = []source.Option{
source.WithProvider(source.GORM),
source.WithGORMDriver(driver),
Expand All @@ -109,7 +109,7 @@ func setup() error {
source.WithProvider(source.FS),
source.WithFrom(config.FS),
}
case source.Local:
case source.Local, "":
default:
slog.Error("config provider not support", "provider", configProvider)
os.Exit(-1)
Expand Down

0 comments on commit 0f59128

Please # to comment.