Commit Graph

16 Commits

Author SHA1 Message Date
Anton Kaliaev 52ce4c20f8
Fix RepeatTimer memory leak (#137)
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
2018-02-09 13:31:32 +04:00
Ethan Buchman d6d97889f2 merkle: remove go-wire dep by copying EncodeByteSlice 2018-02-03 01:29:39 -05:00
Adrian Brink 2e76546223
Clean up glide.yaml 2018-02-02 18:09:48 +01:00
Jae Kwon 7ef6d4b813
Glide update 2018-02-02 12:51:30 +04:00
Ethan Buchman cfbb9338bd
use go-wire sdk2 2018-02-02 12:51:30 +04:00
Jae Kwon 6637c202bf
Revert "Update to use tmlibs sdk2"
This reverts commit ae58af0be534a5c344896461b97a6490d428deb4.
Breaks the tests.
2018-02-02 12:51:30 +04:00
Jae Kwon 4e2a275a67
Update to use tmlibs sdk2 2018-02-02 12:51:30 +04:00
Ethan Buchman a991e2fe9c
Merge branch 'develop' into sdk2 2018-01-02 10:29:04 -05:00
Jae Kwon 797bcdd9e0 Remove common/http 2017-12-25 17:46:21 -08:00
Anton Kaliaev c325ce2182
use NoErrorf and Errorf functions 2017-12-05 17:49:42 -06:00
Anton Kaliaev 956966e658
add missing validator package to glide.yaml 2017-08-11 16:36:26 -04:00
Ethan Buchman d72136da0d Merge pull request #7 from tendermint/log
Log
2017-05-05 14:02:38 -04:00
Ethan Frey 3420b389e9 Add testify version for consistency 2017-05-05 19:45:02 +02:00
Anton Kaliaev ed76afd409
Logger interface and tmLogger impl based on go-kit 2017-05-05 21:43:07 +04:00
Ethan Frey d05b8131a3 Updated glide with cobra/viper, fixed Makefile typo 2017-05-04 19:44:48 -04:00
Ethan Buchman 1ea866fd69 glide 2017-04-21 16:05:03 -04:00