MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / on_connect

Method on_connect

chain/src/logger.rs:12–18  ·  view source on GitHub ↗
(&self, remote_addr: SocketAddr, request: &HttpRequest, _t: TransportProtocol)

Source from the content-addressed store, hash-verified

10 type Instant = Instant;
11
12 fn on_connect(&self, remote_addr: SocketAddr, request: &HttpRequest, _t: TransportProtocol) {
13 tracing::info!(
14 "[Logger::on_connect] remote_addr {:?}, headers: {:?}",
15 remote_addr,
16 request
17 );
18 }
19
20 fn on_request(&self, _t: TransportProtocol) -> Self::Instant {
21 tracing::info!("[Logger::on_request]");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected