Fix windows build (#7204)
This commit is contained in:
parent
a0eafa12e3
commit
1aeaf052a6
|
@ -1,10 +1,15 @@
|
||||||
use log::*;
|
use log::*;
|
||||||
use unix_socket::UnixStream;
|
|
||||||
|
|
||||||
pub const SOLANA_SYS_TUNER_PATH: &str = "/tmp/solana-sys-tuner";
|
pub const SOLANA_SYS_TUNER_PATH: &str = "/tmp/solana-sys-tuner";
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
pub fn request_realtime_poh() {
|
pub fn request_realtime_poh() {
|
||||||
info!("Sending tuning request");
|
info!("Sending tuning request");
|
||||||
let status = UnixStream::connect(SOLANA_SYS_TUNER_PATH);
|
let status = unix_socket::UnixStream::connect(SOLANA_SYS_TUNER_PATH);
|
||||||
info!("Tuning request status {:?}", status);
|
info!("Tuning request status {:?}", status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(unix))]
|
||||||
|
pub fn request_realtime_poh() {
|
||||||
|
info!("Tuning request ignored on this platform");
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue