mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-28 18:10:38 +00:00
Update client dependencies
This commit is contained in:
parent
b322716215
commit
2b5451f74a
3 changed files with 482 additions and 335 deletions
811
client/Cargo.lock
generated
811
client/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -12,7 +12,7 @@ log = "0.4"
|
|||
serde = "1"
|
||||
serde_json = "1"
|
||||
tokio = { version = "1", features = ["rt", "macros", "net", "rt-multi-thread"] }
|
||||
jsonrpsee = { version = "0.21.0", features = [
|
||||
jsonrpsee = { version = "0.24", features = [
|
||||
"macros",
|
||||
"async-client",
|
||||
"http-client",
|
||||
|
|
|
@ -2,7 +2,7 @@ use std::{path::PathBuf, time::Duration};
|
|||
|
||||
use clap::Parser;
|
||||
use jsonrpsee::core::client::{Error as RpcError, Subscription, SubscriptionClientT};
|
||||
use serde_json::Value;
|
||||
use serde_json::{Error, Value};
|
||||
use tokio::{select, time::sleep};
|
||||
|
||||
use cli::Cli;
|
||||
|
@ -500,7 +500,7 @@ async fn connect(cli: Cli) -> Result<Value, RpcError> {
|
|||
async fn stream_next(
|
||||
timeout: f64,
|
||||
stream: &mut Subscription<Value>,
|
||||
) -> Option<Result<Value, RpcError>> {
|
||||
) -> Option<Result<Value, Error>> {
|
||||
if timeout < 0.0 {
|
||||
stream.next().await
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue