Skip to content

Commit beb43fa

Browse files
leggetterCopilot
andauthored
fix: postgres config check logic
Co-authored-by: Copilot <[email protected]>
1 parent 36a7600 commit beb43fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/logstore/logstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func MakeDriverOpts(cfg Config) (DriverOpts, error) {
6666
// driverOpts.CH = chDB
6767
// }
6868

69-
if cfg.Postgres != nil || *cfg.Postgres != "" {
69+
if cfg.Postgres != nil && *cfg.Postgres != "" {
7070
pgDB, err := pgxpool.New(context.Background(), *cfg.Postgres)
7171
if err != nil {
7272
return DriverOpts{}, err

0 commit comments

Comments
 (0)