MCPcopy Create free account
hub / github.com/SeismicSystems/summit / extract_endpoint

Function extract_endpoint

types/src/reth.rs:81–85  ·  view source on GitHub ↗

Extract endpoint from a log line (copied from alloy-node-bindings utils.rs)

(key: &str, line: &str)

Source from the content-addressed store, hash-verified

79
80/// Extract endpoint from a log line (copied from alloy-node-bindings utils.rs)
81fn 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)]

Callers 1

try_spawnMethod · 0.85

Calls 1

extract_valueFunction · 0.85

Tested by

no test coverage detected