From eee8bdb3da49b1b9b14833748a51dbb8cba57166 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 24 Jun 2024 22:53:39 -0700 Subject: feat(finger): tokio instead of std net --- src/modules/finger.rs | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'src/modules') diff --git a/src/modules/finger.rs b/src/modules/finger.rs index 34140c0..44e4df6 100644 --- a/src/modules/finger.rs +++ b/src/modules/finger.rs @@ -1,9 +1,6 @@ use { crate::{response::success, route::track_mount}, - std::{ - io::{Read, Write}, - time::Duration, - }, + tokio::io::{AsyncReadExt, AsyncWriteExt}, windmark::response::Response, }; @@ -26,7 +23,7 @@ To visit my personal Finger server, , you would visit , you would visit break, Ok(n) => n, Err(e) => { -- cgit v1.2.3