Streamer test is linux only, remove warnings on not-linux (#9274)
automerge
This commit is contained in:
parent
c67e9fabc4
commit
1078c86100
|
@ -1,10 +1,11 @@
|
||||||
|
#![cfg(target_os = "linux")]
|
||||||
|
|
||||||
use solana_streamer::packet::Packet;
|
use solana_streamer::packet::Packet;
|
||||||
use solana_streamer::packet::PACKET_DATA_SIZE;
|
use solana_streamer::packet::PACKET_DATA_SIZE;
|
||||||
use solana_streamer::recvmmsg::*;
|
use solana_streamer::recvmmsg::*;
|
||||||
use std::net::UdpSocket;
|
use std::net::UdpSocket;
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
|
||||||
#[test]
|
#[test]
|
||||||
pub fn test_recv_mmsg_batch_size() {
|
pub fn test_recv_mmsg_batch_size() {
|
||||||
let reader = UdpSocket::bind("127.0.0.1:0").expect("bind");
|
let reader = UdpSocket::bind("127.0.0.1:0").expect("bind");
|
||||||
|
|
Loading…
Reference in New Issue