mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-11-29 08:55:48 +00:00
Update client dependencies
This commit is contained in:
1 parent
b322716215
commit
2b5451f74a
3 files changed
+482
-335
No files matched your search
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user