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

Method on_response

chain/src/logger.rs:49–55  ·  view source on GitHub ↗
(&self, result: &str, started_at: Self::Instant, _t: TransportProtocol)

Source from the content-addressed store, hash-verified

47 }
48
49 fn on_response(&self, result: &str, started_at: Self::Instant, _t: TransportProtocol) {
50 tracing::info!(
51 "[Logger::on_response] result: {}, time elapsed {:?}",
52 result,
53 started_at.elapsed()
54 );
55 }
56
57 fn on_disconnect(&self, remote_addr: SocketAddr, _t: TransportProtocol) {
58 tracing::info!("[Logger::on_disconnect] remote_addr: {:?}", remote_addr);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected