mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-30 05:01:44 +00:00
Add ThrottleTimer.Unset
This commit is contained in:
@ -46,6 +46,10 @@ func (t *ThrottleTimer) Set() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (t *ThrottleTimer) Unset() {
|
||||||
|
t.timer.Stop()
|
||||||
|
}
|
||||||
|
|
||||||
// For ease of .Stop()'ing services before .Start()'ing them,
|
// For ease of .Stop()'ing services before .Start()'ing them,
|
||||||
// we ignore .Stop()'s on nil ThrottleTimers
|
// we ignore .Stop()'s on nil ThrottleTimers
|
||||||
func (t *ThrottleTimer) Stop() bool {
|
func (t *ThrottleTimer) Stop() bool {
|
||||||
|
Reference in New Issue
Block a user