Fix windows build (#7204)

This commit is contained in:
Michael Vines 2019-12-02 19:45:07 -07:00 committed by GitHub
parent a0eafa12e3
commit 1aeaf052a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -1,10 +1,15 @@
use log::*;
use unix_socket::UnixStream;
pub const SOLANA_SYS_TUNER_PATH: &str = "/tmp/solana-sys-tuner";
#[cfg(unix)]
pub fn request_realtime_poh() {
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);
}
#[cfg(not(unix))]
pub fn request_realtime_poh() {
info!("Tuning request ignored on this platform");
}