Skip to content

Commit

Permalink
Initialize url.Values when building RO db pool
Browse files Browse the repository at this point in the history
  • Loading branch information
hifi committed Jan 11, 2024
1 parent 48dfc4d commit 4e694fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbutil/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func NewFromConfig(owner string, cfg Config, logger DatabaseLogger) (*Database,
if roUri == "" {
uriParts := strings.Split(cfg.URI, "?")

var qs url.Values
qs := url.Values{}
if len(uriParts) == 2 {
var err error
qs, err = url.ParseQuery(uriParts[1])
Expand Down

0 comments on commit 4e694fb

Please sign in to comment.