mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 23:57:07 +00:00
Revert "local state: clone check to avoid side effect"
This reverts commit af1243c7251fe6291145bbe4f4dacd374779c425.
This commit is contained in:
parent
42af4cdc70
commit
4e862d126d
@ -335,9 +335,6 @@ func (l *State) AddCheck(check *structs.HealthCheck, token string) error {
|
|||||||
return fmt.Errorf("no check")
|
return fmt.Errorf("no check")
|
||||||
}
|
}
|
||||||
|
|
||||||
// clone the check since we will be modifying it.
|
|
||||||
check = check.Clone()
|
|
||||||
|
|
||||||
if l.discardCheckOutput.Load().(bool) {
|
if l.discardCheckOutput.Load().(bool) {
|
||||||
check.Output = ""
|
check.Output = ""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user