mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Update client dependencies
This commit is contained in:
parent
b322716215
commit
2b5451f74a
3 changed files with 482 additions and 335 deletions
|
@ -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