Browse Source

Increase default retry interval for file SD

The automatic refresh is a safety mechanism in case
file watches fail. As they seem to be working well the
interval can be increased.
pull/993/head
Fabian Reinartz 9 years ago
parent
commit
139f27bf8a
  1. 2
      config/config.go
  2. 2
      config/config_test.go

2
config/config.go

@ -91,7 +91,7 @@ var (
// The default file SD configuration.
DefaultFileSDConfig = FileSDConfig{
RefreshInterval: Duration(30 * time.Second),
RefreshInterval: Duration(5 * time.Minute),
}
// The default Consul SD configuration.

2
config/config_test.go

@ -65,7 +65,7 @@ var expectedConf = &Config{
},
{
Names: []string{"bar/*.yaml"},
RefreshInterval: Duration(30 * time.Second),
RefreshInterval: Duration(5 * time.Minute),
},
},

Loading…
Cancel
Save