fn write_stream(
    stream: &mut std::net::TcpStream,
    hostname: &str,
    probe_and_value: String,
    timestamp: i64,
) {
    let content = format!("{}.{} {}\n", hostname, probe_and_value, timestamp);
    // println!("Debug: writing tsdb data -> {}", content); // Uncomment to debug carbon writes
    let _ = stream.write(&content.as_bytes());
}
// send the stream containing the measurements to the carbon socket
send the stream containing the measurements to the carbon socket
send the stream containing the measurements to the carbon socket
fn write_stream(
    stream: &mut std::net::TcpStream,
    hostname: &str,
    probe_and_value: String,
    timestamp: i64,
) {
    let content = format!("{}.{} {}\n", hostname, probe_and_value, timestamp);
    // println!("Debug: writing tsdb data -> {}", content); // Uncomment to debug carbon writes
    let _ = stream.write(&content.as_bytes());
}
fn write_stream ( stream : & mut std :: net :: TcpStream , hostname : & str , probe_and_value : String , timestamp : i64 , ) { let content = format ! ( " \n " hostname probe_and_value timestamp ) ; // println!("Debug: writing tsdb data -> {}", content); // Uncomment to debug carbon writes let _ = stream . write ( & content . as_bytes ( ) ) ; }
send the stream containing the measurements to the carbon socket
send the stream containing the measurements to the carbon socket
stream
&mut std::net::TcpStream
hostname
&str
probe_and_value
String
timestamp
i64
stream
&mut std::net::TcpStream
hostname
&str
probe_and_value
String
timestamp
i64