aboutsummaryrefslogtreecommitdiffsponsor
path: root/internal/service/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/service/config.go')
-rw-r--r--internal/service/config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/service/config.go b/internal/service/config.go
index 718be14..0c42755 100644
--- a/internal/service/config.go
+++ b/internal/service/config.go
@@ -34,8 +34,8 @@ type GlobalConfig struct {
}
type Config struct {
- *GlobalConfig `toml:"global"`
- Mirrors []*Mirror `toml:"mirrors,omitempty"`
+ GlobalConfig `toml:"global"`
+ Mirrors []*Mirror `toml:"mirrors,omitempty"`
}
func (c *Config) String() string {
@@ -43,7 +43,7 @@ func (c *Config) String() string {
}
var DefaultConfig = Config{
- GlobalConfig: &GlobalConfig{
+ GlobalConfig: GlobalConfig{
MaxInterval: Duration{24 * time.Hour},
MinInterval: Duration{time.Hour},
},