Extract endpoint from a log line (copied from alloy-node-bindings utils.rs)
(key: &str, line: &str)
| 79 | |
| 80 | /// Extract endpoint from a log line (copied from alloy-node-bindings utils.rs) |
| 81 | fn extract_endpoint(key: &str, line: &str) -> Option<SocketAddr> { |
| 82 | extract_value(key, line) |
| 83 | .map(|val| val.trim_start_matches("Some(").trim_end_matches(')')) |
| 84 | .and_then(|val| val.parse().ok()) |
| 85 | } |
| 86 | |
| 87 | /// Node error types |
| 88 | #[derive(Debug)] |
no test coverage detected