mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-31 15:11:21 +00:00
fix RepeatTimer memory leak (Refs #137) * test case * drain channels on reset Leaking memory: ``` leaktest.go:144: leaktest: leaked goroutine: goroutine 116 [chan send]: github.com/tendermint/tmlibs/common.(*RepeatTimer).fireRoutine(0xc42006a410, 0xc4203403c0, 0xc42031b2c0) /go/src/github.com/tendermint/tmlibs/common/repeat_timer.go:160 +0x6e created by github.com/tendermint/tmlibs/common.(*RepeatTimer).reset /go/src/github.com/tendermint/tmlibs/common/repeat_timer.go:196 +0xe9 ``` The alternative solution could be draining channels on the client side. * add one more select instead of draining thanks to Jae
39 lines
819 B
YAML
39 lines
819 B
YAML
package: github.com/tendermint/tmlibs
|
|
import:
|
|
- package: github.com/go-kit/kit
|
|
version: ^0.6.0
|
|
subpackages:
|
|
- log
|
|
- log/level
|
|
- log/term
|
|
- package: github.com/go-logfmt/logfmt
|
|
version: ^0.3.0
|
|
- package: github.com/gogo/protobuf
|
|
version: ^1.0.0
|
|
subpackages:
|
|
- gogoproto
|
|
- proto
|
|
- package: github.com/jmhodges/levigo
|
|
- package: github.com/pkg/errors
|
|
version: ^0.8.0
|
|
- package: github.com/spf13/cobra
|
|
version: ^0.0.1
|
|
- package: github.com/spf13/viper
|
|
version: ^1.0.0
|
|
- package: github.com/syndtr/goleveldb
|
|
subpackages:
|
|
- leveldb
|
|
- leveldb/errors
|
|
- leveldb/iterator
|
|
- leveldb/opt
|
|
- package: golang.org/x/crypto
|
|
subpackages:
|
|
- ripemd160
|
|
testImport:
|
|
- package: github.com/stretchr/testify
|
|
version: ^1.2.1
|
|
subpackages:
|
|
- assert
|
|
- require
|
|
- package: github.com/fortytw2/leaktest
|