Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
4 years ago
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
5 years ago
Anton Kaliaev
3e1516b624
linters: enable stylecheck ( #4153 )
Refs #3262
5 years ago
Marko
bf989eb272
fix linting ( #4000 )
5 years ago
Sean Braithwaite
99b7a33f90
align buffer sizes
5 years ago
Sean Braithwaite
9bd2c0389f
rename trySend to end
5 years ago
Sean Braithwaite
c62b7fbd7e
feedback tweaks
5 years ago
Sean Braithwaite
5474528db1
Switch to a priority queue:
* Routines will now use a priority queue instead of channels to
iterate over events
5 years ago
Sean Braithwaite
2c8cbfc26a
linter fixes
5 years ago
Sean Braithwaite
5b880fbcff
cleanup events
5 years ago
Sean Braithwaite
c081b60ef6
Solidify API:
+ use `trySend` the replicate peer sending
+ expose `next()` as a chan of events as output
+ expose `final()` as a chan of error, for the final error
+ add `ready()` as chan struct when routine is ready
5 years ago
Sean Braithwaite
e4913f533a
Fix race condition in shutdown:
+ ensure that we stop accepting messages once `stop` has been called
to avoid the case in which we attempt to write to a channel which
has already been closed
5 years ago
Sean Braithwaite
0cf9f86292
Modification based on feedback
+ `routine.send` returns false when routine is not running
+ this will prevent panics sending to channels which have been
closed
+ Make output channels routine specific removing the risk of someone
writting to a channel which was closed by another touine.
+ consistency changes between the routines and the demuxer
5 years ago
Sean Braithwaite
d1671d6175
blockchain v2: routines
+ Include an implementaiton of the routines specified in ADR-43
along with a demuxer and some dummy reactor code
5 years ago