mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-01 21:06:11 +00:00
nil-ThrottleTimer.Stop() does nothing
This commit is contained in:
@@ -10,7 +10,7 @@ install:
|
||||
go install github.com/tendermint/tendermint/cmd/debora
|
||||
go install github.com/tendermint/tendermint/cmd/stdinwriter
|
||||
go install github.com/tendermint/tendermint/cmd/logjack
|
||||
@echo -n `git rev-parse --verify HEAD` > $(TMROOT)/revisions
|
||||
@echo -n `git rev-parse --verify HEAD` >> $(TMROOT)/revisions
|
||||
|
||||
build:
|
||||
go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
|
||||
@@ -48,4 +48,4 @@ gen_client:
|
||||
go generate rpc/core_client/*.go
|
||||
|
||||
revision:
|
||||
@echo -n `git rev-parse --verify HEAD` > $(TMROOT)/revisions
|
||||
@echo -n `git rev-parse --verify HEAD` >> $(TMROOT)/revisions
|
||||
|
||||
@@ -46,7 +46,12 @@ func (t *ThrottleTimer) Set() {
|
||||
}
|
||||
}
|
||||
|
||||
// For ease of .Stop()'ing services before .Start()'ing them,
|
||||
// we ignore .Stop()'s on nil ThrottleTimers
|
||||
func (t *ThrottleTimer) Stop() bool {
|
||||
if t == nil {
|
||||
return false
|
||||
}
|
||||
close(t.quit)
|
||||
return t.timer.Stop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user