lighthouse/beacon_node/network/src
Paul Hauner 805e152f66 Simplify enum -> str with strum (#2164)
## Issue Addressed

NA

## Proposed Changes

As per #2100, uses derives from the sturm library to implement AsRef<str> and AsStaticRef to easily get str values from enums without creating new Strings. Furthermore unifies all attestation error counter into one IntCounterVec vector.

These works are originally by @blacktemplar, I've just created this PR so I can resolve some merge conflicts.

## Additional Info

NA


Co-authored-by: blacktemplar <blacktemplar@a1.net>
2021-01-19 06:33:58 +00:00
..
attestation_service Server sent events (#1920) 2020-12-04 00:18:58 +00:00
beacon_processor Update libp2p (#2101) 2020-12-23 07:53:36 +00:00
router Update libp2p (#2101) 2020-12-23 07:53:36 +00:00
service Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
sync Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
error.rs Initial work towards v0.2.0 (#924) 2020-03-17 17:24:44 +11:00
lib.rs Upgrade to tokio 0.3 (#1839) 2020-11-28 05:30:57 +00:00
metrics.rs Simplify enum -> str with strum (#2164) 2021-01-19 06:33:58 +00:00
nat.rs Upgrade to tokio 0.3 (#1839) 2020-11-28 05:30:57 +00:00
persisted_dht.rs Add database schema versioning (#1688) 2020-10-01 11:12:36 +10:00
service.rs Subnet discovery fixes (#2095) 2020-12-17 00:39:15 +00:00
status.rs Move some rpc processing to the beacon_processor (#1936) 2020-11-19 23:33:44 +00:00