Commit Graph

21 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
Ethan Buchman 1d7fc78ea1 update glide 2018-02-02 23:49:14 -05:00
Adrian Brink 2e76546223
Clean up glide.yaml 2018-02-02 18:09:48 +01:00
Jae Kwon 580c3db8f9
Hashable -> Hasher; SimpleMap upgrade; No "SimpleHashFromBinary" (#128)
* Update SimpleMap to hash both keys and values for benefit; Hashable is Hasher; Don't assume go-wire
2018-02-02 12:51:30 +04: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 b31397aff5 Fix GoLevelDB Iterator which needs to copy a temp []byte 2017-12-28 18:30:56 -08:00
Jae Kwon 797bcdd9e0 Remove common/http 2017-12-25 17:46:21 -08:00
Jae Kwon b70ae4919b Update glide file 2017-12-19 20:47:22 -08:00
Jae Kwon aab2d70dd3
Sdk2 kvpair (#102)
* Canonical KVPair in common
* Simplify common/Bytes to just hex encode
2017-12-17 13:04:15 -08:00
Anton Kaliaev c325ce2182
use NoErrorf and Errorf functions 2017-12-05 17:49:42 -06:00
Petabyte Storage 4769719a4b fix Errorf 2017-12-04 08:54:19 -08:00
Anton Kaliaev 956966e658
add missing validator package to glide.yaml 2017-08-11 16:36:26 -04:00
Anton Kaliaev 6ff7b4395d
update glide.yaml and glide.lock files 2017-05-05 21:48:02 +04: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