Skip to content

Commit

Permalink
Gracefully fail if CL_DATABASE_URL is not set. (#15741)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-raykov authored Dec 19, 2024
1 parent 7f28ce0 commit 37d3081
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 37d3081

Please sign in to comment.