summaryrefslogtreecommitdiff
path: root/client-native-rift
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-02-05 20:57:47 +0100
committermetamuffin <metamuffin@disroot.org>2023-02-05 20:57:47 +0100
commit2c6f4dc839a279b9d5c10d674489998b021908b8 (patch)
tree51922c7eceffdaf847713b15a1e30159b316d334 /client-native-rift
parent47556e24509d4c438a7fad6c05828ca4e3f2761a (diff)
downloadkeks-meet-2c6f4dc839a279b9d5c10d674489998b021908b8.tar
keks-meet-2c6f4dc839a279b9d5c10d674489998b021908b8.tar.bz2
keks-meet-2c6f4dc839a279b9d5c10d674489998b021908b8.tar.zst
update deps
Diffstat (limited to 'client-native-rift')
-rw-r--r--client-native-rift/Cargo.toml6
-rw-r--r--client-native-rift/src/main.rs42
2 files changed, 19 insertions, 29 deletions
diff --git a/client-native-rift/Cargo.toml b/client-native-rift/Cargo.toml
index cdc6b3b..ccc0c5c 100644
--- a/client-native-rift/Cargo.toml
+++ b/client-native-rift/Cargo.toml
@@ -6,12 +6,12 @@ edition = "2021"
[dependencies]
client-native-lib = { path = "../client-native-lib" }
-clap = { version = "4.1.1", features = ["derive"] }
+clap = { version = "4.1.4", features = ["derive"] }
env_logger = "0.10.0"
log = "0.4"
-tokio = { version = "1.24", features = ["full"] }
-bytes = "1.3.0"
+tokio = { version = "1.25", features = ["full"] }
+bytes = "1.4.0"
indicatif = "0.17.3"
humansize = "2.1.3"
diff --git a/client-native-rift/src/main.rs b/client-native-rift/src/main.rs
index 45f720a..6255fe7 100644
--- a/client-native-rift/src/main.rs
+++ b/client-native-rift/src/main.rs
@@ -167,8 +167,7 @@ impl EventHandler for Handler {
info!("channel opened");
*writer.write().await = Some(s.args.action.create_writer().await)
})
- })
- .await;
+ });
}
{
let writer = writer.clone();
@@ -183,8 +182,7 @@ impl EventHandler for Handler {
exit(0);
}
})
- })
- .await;
+ });
}
{
let writer = writer.clone();
@@ -218,13 +216,11 @@ impl EventHandler for Handler {
})
})
}
- .await;
dc.on_error(box move |err| {
Box::pin(async move {
error!("data channel errored: {err}");
})
- })
- .await;
+ });
}
}
})
@@ -292,27 +288,23 @@ impl LocalResource for FileSender {
{
let reader = reader.clone();
let reader_factory = reader_factory.clone();
- channel
- .on_open(box move || {
- let reader = reader.clone();
- Box::pin(async move {
- info!("channel open");
- *reader.write().await = Some(reader_factory.create_reader().await);
- })
+ channel.on_open(box move || {
+ let reader = reader.clone();
+ Box::pin(async move {
+ info!("channel open");
+ *reader.write().await = Some(reader_factory.create_reader().await);
})
- .await;
+ })
}
{
let reader = reader.clone();
- channel
- .on_close(box move || {
- let reader = reader.clone();
- Box::pin(async move {
- info!("channel closed");
- *reader.write().await = None;
- })
+ channel.on_close(box move || {
+ let reader = reader.clone();
+ Box::pin(async move {
+ info!("channel closed");
+ *reader.write().await = None;
})
- .await;
+ })
}
{
channel.set_buffered_amount_low_threshold(1 << 20).await;
@@ -354,9 +346,7 @@ impl LocalResource for FileSender {
.await;
}
- channel
- .on_error(box move |err| Box::pin(async move { error!("channel error: {err}") }))
- .await;
+ channel.on_error(box move |err| Box::pin(async move { error!("channel error: {err}") }))
})
}
}