From 225b644edf9eda3f334116026af1d946d502735c Mon Sep 17 00:00:00 2001
From: Paul Olteanu
Date: Fri, 13 Sep 2024 13:37:29 -0400
Subject: [PATCH] async methods don't need ownership
---
src/lib.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib.rs b/src/lib.rs
index 1615d12..d0cb791 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -222,7 +222,7 @@ impl StunClient {
#[cfg(feature = "async")]
async fn query_external_address_async_impl(
- self,
+ &self,
udp: &tokio::net::UdpSocket,
) -> Result {
let mut interval = tokio::time::interval(self.retry_interval);
@@ -255,7 +255,7 @@ impl StunClient {
/// Requires `async` crate feature to be enabled (it is by default)
#[cfg(feature = "async")]
pub async fn query_external_address_async(
- self,
+ &self,
udp: &tokio::net::UdpSocket,
) -> Result {
let timeout = self.timeout;