1use log::*;
2
3pub const SOLANA_SYS_TUNER_PATH: &str = "/tmp/solana-sys-tuner";
4
5#[cfg(unix)]
6pub fn request_realtime_poh() {
7 info!("Sending tuning request");
8 let status = unix_socket::UnixStream::connect(SOLANA_SYS_TUNER_PATH);
9 match status {
10 Ok(_) => info!("Successfully sent tuning request"),
11 Err(err) => warn!(
12 "Failed to send tuning request, is `solana-sys-tuner` running? {:?}",
13 err
14 ),
15 }
16}
17
18#[cfg(not(unix))]
19pub fn request_realtime_poh() {
20 info!("Tuning request ignored on this platform");
21}