Marko
27b00cf8d1
libs/common: refactor libs common 3 ( #4232 )
...
* libs/common: refactor libs common 3
- move nil.go into types folder and make private
- move service & baseservice out of common into service pkg
ref #4147
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
* add changelog entry
2019-12-11 09:31:25 +01:00
Marko
afc4d7a61f
libs/common: refactor libs/common 2 ( #4231 )
...
* libs/common: refactor libs/common 2
- move random function to there own pkg
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
* change imports and usage throughout repo
* fix goimports
* add changelog entry
2019-12-10 18:38:34 +01:00
Marko
3e2751d274
lint: Enable Golint ( #4212 )
...
* Fix many golint errors
* Fix golint errors in the 'lite' package
* Don't export Pool.store
* Fix typo
* Revert unwanted changes
* Fix errors in counter package
* Fix linter errors in kvstore package
* Fix linter error in example package
* Fix error in tests package
* Fix linter errors in v2 package
* Fix linter errors in consensus package
* Fix linter errors in evidence package
* Fix linter error in fail package
* Fix linter errors in query package
* Fix linter errors in core package
* Fix linter errors in node package
* Fix linter errors in mempool package
* Fix linter error in conn package
* Fix linter errors in pex package
* Rename PEXReactor export to Reactor
* Fix linter errors in trust package
* Fix linter errors in upnp package
* Fix linter errors in p2p package
* Fix linter errors in proxy package
* Fix linter errors in mock_test package
* Fix linter error in client_test package
* Fix linter errors in coretypes package
* Fix linter errors in coregrpc package
* Fix linter errors in rpcserver package
* Fix linter errors in rpctypes package
* Fix linter errors in rpctest package
* Fix linter error in json2wal script
* Fix linter error in wal2json script
* Fix linter errors in kv package
* Fix linter error in state package
* Fix linter error in grpc_client
* Fix linter errors in types package
* Fix linter error in version package
* Fix remaining errors
* Address review comments
* Fix broken tests
* Reconcile package coregrpc
* Fix golangci bot error
* Fix new golint errors
* Fix broken reference
* Enable golint linter
* minor changes to bring golint into line
* fix failing test
* fix pex reactor naming
* address PR comments
2019-12-05 10:12:08 +01:00
Anton Kaliaev
3e1516b624
linters: enable stylecheck ( #4153 )
...
Refs #3262
2019-11-16 19:35:39 +04:00
Phil Salant
05075ea5b7
linters: modify code to pass maligned and interfacer ( #3959 )
...
* Fix maligned structs
* Fix interfacer errors
* Revert accidental go.mod and go.sum changes
* Revert P2PConfig struct maligned reorder
* Revert PeerRoundState struct maligned reordering
* Revert RoundState struct maligned reordering
* Reorder WSClient struct
* Revert accidental type change
* Clean up type change
* Clean up type changes
* Revert to types.ABCIApplicationServer in GRPCServer struct
* Revert maligned changes to BaseConfig struct
* Fix tests in io_test.go
* Fix client_test package tests
* Fix reactor tests in consensus package
* Fix new interfacer errors
2019-09-30 17:12:51 -07:00
Anton Kaliaev
3c8156a55a
preallocating memory when we can
2019-02-06 15:24:54 +04:00
Anton Kaliaev
05a119aab5
libs: Test deadlock from listener removal inside callback ( #2588 )
...
Closes #2575
2018-10-09 19:31:06 +02:00
Anton Kaliaev
989a2f32b1
libs: Refactor & document events code ( #2576 )
...
* [libs/events] add more godoc comments
* [libs/events] refactor code
- improve var naming
- improve code structure
- do not use defers for unlocking mutexes (defer takes time)
2018-10-09 13:09:40 +02:00
goolAdapter
4b2bf023dd
libs: Fix event concurrency flaw ( #2519 )
...
* fix event concurrency flaw
* modify changelog
* fix a mistake
* fix a lint issue
* modify changelog
* modify for review issue
* modify for review issue
* modify for review issue
2018-10-08 15:36:31 +02:00
Dev Ojha
dae7dc30e0
Switch usage of math/rand to cmn's rand ( #1980 )
...
This commit switches all usage of math/rand to cmn's rand. The only
exceptions are within the random file itself, the tools package, and the
crypto package. In tools you don't want it to lock between the go-routines.
The crypto package doesn't use it so the crypto package have no other
dependencies within tendermint/tendermint for easier portability.
Crypto/rand usage is unadjusted.
Closes #1343
2018-07-16 11:20:37 +04:00
Ethan Buchman
d55243f0e6
fix import paths
2018-07-01 22:36:49 -04:00
Anton Kaliaev
c6f612bfc3
subscribe before state emits NewRoundStep
...
I had to alter events package for that. Hope that's fine.
Refs #847
2018-05-21 10:51:47 +04:00
Anton Kaliaev
bb9aa85d22
copy events and pubsub packages from tmlibs
...
Refs #847
2018-05-21 10:51:47 +04:00