fn log_unit_size(&self, vertex: &Vertex<C>, log_msg: &str) {
        if self.config.log_unit_sizes {
            if let Some(hash) = vertex.unit_hash() {
                let size = HighwayMessage::NewVertex(vertex.clone()).serialize().len();
                info!(size, %hash, "{}", log_msg);
            }
        }
    }
/// Logs the vertex' serialized size.
Logs the vertex' serialized size.
Logs the vertex ' serialized size .
fn log_unit_size(&self, vertex: &Vertex<C>, log_msg: &str) {
        if self.config.log_unit_sizes {
            if let Some(hash) = vertex.unit_hash() {
                let size = HighwayMessage::NewVertex(vertex.clone()).serialize().len();
                info!(size, %hash, "{}", log_msg);
            }
        }
    }
fn log_unit_size ( & self , vertex : & Vertex < C > , log_msg : & str ) { if self . config . log_unit_sizes { if let Some ( hash ) = vertex . unit_hash ( ) { let size = HighwayMessage :: NewVertex ( vertex . clone ( ) ) . serialize ( ) . len ( ) ; info ! ( size hash " " log_msg ) ; } } }
Logs the vertex' serialized size.
Logs the vertex ' serialized size .
&self
vertex
&Vertex<C>
log_msg
&str
&self
vertex
&Vertex<C>
log_msg
&str