sentinel-golang
sentinel-golang copied to clipboard
[BUG] should we set resource state to closed when circuit breaker rules are deleted?
Issue Description
Type: bug report
Describe what happened
When the circuit breaker rules are cleared, no callbacks from OnTransformToClosed to tell us the state of resource is closed
Describe what you expected to happen
We expect the state of resource deleted should be closed...
How to reproduce it (as minimally and precisely as possible)
- Load rules and trigger to open
- clear rules
- no callbacks from OnTransformToClosed
Tell us your environment
Anything else we need to know?
How to clean up the rules? Did you delete the rules file or did you empty the contents of the rules file?
LoadRules(nil)