aboutsummaryrefslogtreecommitdiff
path: root/src/connection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.rs')
-rw-r--r--src/connection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.rs b/src/connection.rs
index 37d31f4..2cc27d5 100644
--- a/src/connection.rs
+++ b/src/connection.rs
@@ -9,7 +9,7 @@ impl Connection {
/// Creates a new connection and handle to rtnetlink and spawns the connection task.
/// Can be used to interact with rtnetlink by enabling certain crate features
/// and calling the methods they provide.
- pub fn new() -> Result<Self> {
+ pub async fn new() -> Result<Self> {
let (conn, handle, _) = rtnetlink::new_connection()?;
tokio::spawn(conn);