mirror of
https://github.com/status-im/consul.git
synced 2025-02-19 17:14:37 +00:00
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)
|
return fmt.Errorf("Failed reloading metadata: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reload the watches.
|
|
||||||
if err := a.reloadWatches(newCfg); err != nil {
|
if err := a.reloadWatches(newCfg); err != nil {
|
||||||
return fmt.Errorf("Failed reloading watches: %v", err)
|
return fmt.Errorf("Failed reloading watches: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -271,7 +271,6 @@ func TestAgent_Reload(t *testing.T) {
|
|||||||
t.Fatalf("missing redis-reloaded service")
|
t.Fatalf("missing redis-reloaded service")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify that previous config's watch plans were stopped.
|
|
||||||
for _, wp := range cfg.WatchPlans {
|
for _, wp := range cfg.WatchPlans {
|
||||||
if !wp.IsStopped() {
|
if !wp.IsStopped() {
|
||||||
t.Fatalf("Reloading configs should stop watch plans of the previous configuration")
|
t.Fatalf("Reloading configs should stop watch plans of the previous configuration")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user