prysm-pulse/beacon-chain/p2p
rkapka a5f0fd29fc
Fix antipatterns (#6961)
* Merge variable declaration and assignment
* Use result of type assertion to simplify cases
* Replace call to bytes.Compare with bytes.Equal
* Drop unnecessary use of the blank identifier
* Replace x.Sub(time.Now()) with time.Until(x)
* Function literal can be simplified
* Use a single append to concatenate two slices
* Replace time.Now().Sub(x) with time.Since(x)
* Omit comparison with boolean constant
* Omit redundant nil check on slices
* Nested if can be replaced with else-if
* Function call can be replaced with helper function
* Omit redundant control flow
* Use plain channel send or receive
* Simplify returning boolean expression
* Merge branch 'origin-master' into fix-antipatterns
* Merge branch 'master' into fix-antipatterns
* Merge branch 'origin-master' into revert-single-channel-antipattern
* Revert "Use plain channel send or receive"

This reverts commit b3108fdc3a656a9c9b1823409dc6a263e69f9e92.
2020-08-11 12:14:28 +00:00
..
encoder Remove Deprecated SSZ Decode Edge Case for BeaconBlocksByRoots (#6771) 2020-07-29 23:15:14 +00:00
peers Peer scorer: weighted sorting, requests capping, stale peers handling. (#6928) 2020-08-09 20:26:09 +00:00
testing Fix multiple anti-patterns from DeepSource analysis (#6951) 2020-08-10 16:16:45 +00:00
addr_factory_test.go Applies assertion funcs to p2p tests (#6597) 2020-07-14 16:51:39 +00:00
addr_factory.go QSP-47 Remove Meaningless Relay Addr Check (#6388) 2020-06-25 09:16:30 +00:00
broadcaster_test.go Wait for subnet peers before broadcasting onto attestation subnet topic (#6893) 2020-08-10 10:27:50 -05:00
broadcaster.go Wait for subnet peers before broadcasting onto attestation subnet topic (#6893) 2020-08-10 10:27:50 -05:00
BUILD.bazel Wait for subnet peers before broadcasting onto attestation subnet topic (#6893) 2020-08-10 10:27:50 -05:00
config.go QSP-13 Only Allow Snappy P2P Encoding (#6415) 2020-07-03 11:24:30 +08:00
connection_gater_test.go Harden Against DOS Attacks (#6780) 2020-07-30 18:42:22 +00:00
connection_gater.go Harden Against DOS Attacks (#6780) 2020-07-30 18:42:22 +00:00
dial_relay_node_test.go Applies assertion funcs to p2p tests (#6597) 2020-07-14 16:51:39 +00:00
dial_relay_node.go Refactors calls to deprecated libp2p methods (#6554) 2020-07-13 02:28:40 +00:00
discovery_test.go support domains in discoveryV5 (#6958) 2020-08-11 18:33:27 +08:00
discovery.go support domains in discoveryV5 (#6958) 2020-08-11 18:33:27 +08:00
doc.go Fix old markdown links (#4603) 2020-01-21 03:30:35 +00:00
fork_test.go Applies assertion funcs to p2p tests (#6597) 2020-07-14 16:51:39 +00:00
fork.go Update Node RPC Endpoints (#6289) 2020-06-18 03:53:46 +00:00
gossip_topic_mappings_test.go Update run time to v0.9.3 (#4154) 2020-01-07 18:47:39 +00:00
gossip_topic_mappings.go Move subnet topics to global vars (#6525) 2020-07-09 17:38:15 +00:00
handshake.go Fix Handshake (#6776) 2020-07-30 01:04:35 +00:00
info.go Align code base to v0.11 (#5127) 2020-04-14 20:27:03 +00:00
interfaces.go Wait for subnet peers before broadcasting onto attestation subnet topic (#6893) 2020-08-10 10:27:50 -05:00
log.go Clean Up P2P Service (#6574) 2020-07-13 04:16:24 +00:00
monitoring.go Wait for subnet peers before broadcasting onto attestation subnet topic (#6893) 2020-08-10 10:27:50 -05:00
options_test.go Applies assertion funcs to p2p tests (#6597) 2020-07-14 16:51:39 +00:00
options.go Fix Local IP Address (#6781) 2020-07-30 20:23:30 +00:00
parameter_test.go Update Pubsub Parameters (#6744) 2020-07-29 11:14:15 -05:00
pubsub_test.go Fixes issue with concurrent map writes in gossipsub (#6731) 2020-07-27 00:56:55 +00:00
pubsub.go Wait for subnet peers before broadcasting onto attestation subnet topic (#6893) 2020-08-10 10:27:50 -05:00
rpc_topic_mappings_test.go Applies assertion funcs to p2p tests (#6597) 2020-07-14 16:51:39 +00:00
rpc_topic_mappings.go Validate RPC Topics Before Sending Requests (#6558) 2020-07-13 09:20:53 +08:00
sender_test.go Applies assertion funcs to p2p tests (#6597) 2020-07-14 16:51:39 +00:00
sender.go QSP 32: Add Appropriate Stream Deadlines for RPC Requests (#6583) 2020-07-13 19:40:12 +00:00
service_test.go Revert "Use Less Intensive Search" (#6899) 2020-08-06 02:40:28 +00:00
service.go Fix antipatterns (#6961) 2020-08-11 12:14:28 +00:00
subnets_test.go Wait for subnet peers before broadcasting onto attestation subnet topic (#6893) 2020-08-10 10:27:50 -05:00
subnets.go Wait for subnet peers before broadcasting onto attestation subnet topic (#6893) 2020-08-10 10:27:50 -05:00
topics.go Move subnet topics to global vars (#6525) 2020-07-09 17:38:15 +00:00
utils_test.go Verify External IP is reachable or log a warning if not (#6155) 2020-06-10 18:41:11 -05:00
utils.go QSP-14 consistent file permissions (#6378) 2020-06-25 16:12:59 +00:00
watch_peers.go Refactors calls to deprecated libp2p methods (#6554) 2020-07-13 02:28:40 +00:00