Skip to content

Commit cca043e

Browse files
Update config.go to match spacing format
1 parent f759a9f commit cca043e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/lib/config/config.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ type postgresConfigCommon struct {
6464
}
6565

6666
func (c postgresConfigCommon) DSN() string {
67-
return fmt.Sprintf(
68-
"postgres://%s:%s@%s:%d/%s?sslmode=disable",
69-
url.QueryEscape(c.User),
70-
url.QueryEscape(c.Password),
71-
c.Host,
72-
c.Port,
73-
url.QueryEscape(c.Database),
74-
)
67+
return fmt.Sprintf(
68+
"postgres://%s:%s@%s:%d/%s?sslmode=disable",
69+
url.QueryEscape(c.User),
70+
url.QueryEscape(c.Password),
71+
c.Host,
72+
c.Port,
73+
url.QueryEscape(c.Database),
74+
)
7575
}
7676

7777
type carbonConfig struct {

0 commit comments

Comments
 (0)