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.
This commit is contained in:
Fabian Reinartz 2015-08-16 14:56:26 +02:00
parent 4ee88017f3
commit 139f27bf8a
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

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