From b826aec2ac5369b30bbc928bf703f9e1eef13727 Mon Sep 17 00:00:00 2001 From: weqe Date: Thu, 4 Jul 2024 17:54:10 +0300 Subject: [PATCH] remove wrong use of socket. --- holo-vrrp/src/network.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/holo-vrrp/src/network.rs b/holo-vrrp/src/network.rs index ab46040b..e603278a 100644 --- a/holo-vrrp/src/network.rs +++ b/holo-vrrp/src/network.rs @@ -9,10 +9,10 @@ use std::net::{IpAddr, SocketAddrV4, Ipv4Addr}; use std::os::fd::FromRawFd; use std::sync::Arc; -use holo_utils::socket::AsyncFd; +use holo_utils::socket::{AsyncFd, Socket}; use holo_utils::{capabilities, Sender, UnboundedReceiver}; use libc::{socket, AF_PACKET, ETH_P_ALL, ETH_P_ARP, SOCK_RAW}; -use socket2::{Domain, Protocol, Type, Socket}; +use socket2::{Domain, Protocol, Type}; use tokio::sync::mpsc::error::SendError; use crate::error::IoError;