ping: cleanup and move to script/

This commit is contained in:
darkfi
2024-07-19 15:12:39 +02:00
parent 69fb1568ed
commit 3b421bb8e3
3 changed files with 6 additions and 9 deletions

View File

@@ -34,7 +34,6 @@ members = [
#"bin/tau/tau-cli",
"bin/vanityaddr",
"bin/lilith",
"bin/ping",
"src/sdk",
"src/sdk/python",
@@ -49,6 +48,9 @@ members = [
"src/contract/deployooor",
"example/dchat/dchatd",
# Utils
"script/ping",
]
[dependencies]

View File

@@ -16,13 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use darkfi::net;
use darkfi_serial::{
async_trait, AsyncDecodable, AsyncEncodable, SerialDecodable, SerialEncodable, VarInt,
};
use smol::{
io::{self, AsyncRead, AsyncReadExt, AsyncWriteExt, ReadHalf, WriteHalf},
lock::RwLock as AsyncRwLock,
};
use darkfi_serial::{AsyncDecodable, VarInt};
use smol::io::AsyncReadExt;
use std::sync::Arc;
use url::Url;
@@ -59,7 +54,7 @@ fn main() {
let (signal, shutdown) = smol::channel::unbounded::<()>();
let ex = Arc::new(smol::Executor::new());
let task = ex.spawn(async {
let _task = ex.spawn(async {
ping().await;
let _ = signal.send(()).await;
});