Skip to content

Commit 55e2c45

Browse files
authored
fix: expose pointer to config struct (#3685)
1 parent f4f46cb commit 55e2c45

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/config/config.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,12 @@ func (c *baseConfig) Clone() baseConfig {
317317
return copy
318318
}
319319

320-
type ConfigEditor func(*config)
320+
type Config *config
321+
322+
type ConfigEditor func(Config)
321323

322324
func WithHostname(hostname string) ConfigEditor {
323-
return func(c *config) {
325+
return func(c Config) {
324326
c.Hostname = hostname
325327
}
326328
}

0 commit comments

Comments
 (0)