Skip to content

Commit

Permalink
Merge pull request #1255 from thecaffeinedev/fix/1251-default-db-config
Browse files Browse the repository at this point in the history
fix: add default database config values to prevent launch failures without env vars
  • Loading branch information
tolgaOzen authored May 9, 2024
2 parents 9d7d3fb + 64599cf commit e2c7a09
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,15 @@ func DefaultConfig() *Config {
},
},
Database: Database{
Engine: "memory",
AutoMigrate: true,
MaxDataPerWrite: 1000,
MaxRetries: 10,
WatchBufferSize: 100,
Engine: "memory",
AutoMigrate: true,
MaxOpenConnections: 20,
MaxIdleConnections: 1,
MaxConnectionLifetime: time.Second * 300,
MaxConnectionIdleTime: time.Second * 60,
MaxDataPerWrite: 1000,
MaxRetries: 10,
WatchBufferSize: 100,
GarbageCollection: GarbageCollection{
Enabled: false,
},
Expand Down

0 comments on commit e2c7a09

Please sign in to comment.