nevermind, rename config var
This commit is contained in:
parent
ffb3fc1213
commit
2c154762fe
@ -67,7 +67,7 @@ type Config struct {
|
|||||||
Listen string `yaml:"listen"`
|
Listen string `yaml:"listen"`
|
||||||
} `yaml:"metrics"`
|
} `yaml:"metrics"`
|
||||||
|
|
||||||
WhatsApp struct {
|
GroupMe struct {
|
||||||
OSName string `yaml:"os_name"`
|
OSName string `yaml:"os_name"`
|
||||||
BrowserName string `yaml:"browser_name"`
|
BrowserName string `yaml:"browser_name"`
|
||||||
} `yaml:"groupme"`
|
} `yaml:"groupme"`
|
||||||
@ -80,8 +80,8 @@ type Config struct {
|
|||||||
func (config *Config) setDefaults() {
|
func (config *Config) setDefaults() {
|
||||||
config.AppService.Database.MaxOpenConns = 20
|
config.AppService.Database.MaxOpenConns = 20
|
||||||
config.AppService.Database.MaxIdleConns = 2
|
config.AppService.Database.MaxIdleConns = 2
|
||||||
config.WhatsApp.OSName = "Mautrix-GroupMe bridge"
|
config.GroupMe.OSName = "Mautrix-GroupMe bridge"
|
||||||
config.WhatsApp.BrowserName = "mx-gm"
|
config.GroupMe.BrowserName = "mx-gm"
|
||||||
config.Bridge.setDefaults()
|
config.Bridge.setDefaults()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user