Skip to content

Commit

Permalink
Gracefully fail if CL_DATABASE_URL is not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-raykov committed Dec 17, 2024
1 parent 2aa85b5 commit 39296b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-geckos-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

#updated Gracefully fail if CL_DATABASE_URL is not set.
3 changes: 3 additions & 0 deletions core/services/chainlink/config_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ func (d *databaseConfig) DefaultQueryTimeout() time.Duration {
}

func (d *databaseConfig) URL() url.URL {
if d.s.URL == nil {
return url.URL{}
}
return *d.s.URL.URL()
}

Expand Down

0 comments on commit 39296b2

Please sign in to comment.