mirror of https://github.com/status-im/consul.git
Removes some useless comments.
This commit is contained in:
parent
1dc57ce5e4
commit
4a3604a3ee
|
@ -2343,7 +2343,6 @@ func (a *Agent) ReloadConfig(newCfg *Config) error {
|
|||
return fmt.Errorf("Failed reloading metadata: %s", err)
|
||||
}
|
||||
|
||||
// Reload the watches.
|
||||
if err := a.reloadWatches(newCfg); err != nil {
|
||||
return fmt.Errorf("Failed reloading watches: %v", err)
|
||||
}
|
||||
|
|
|
@ -271,7 +271,6 @@ func TestAgent_Reload(t *testing.T) {
|
|||
t.Fatalf("missing redis-reloaded service")
|
||||
}
|
||||
|
||||
// Verify that previous config's watch plans were stopped.
|
||||
for _, wp := range cfg.WatchPlans {
|
||||
if !wp.IsStopped() {
|
||||
t.Fatalf("Reloading configs should stop watch plans of the previous configuration")
|
||||
|
|
Loading…
Reference in New Issue