From aa20b7f1c343c0ffd60bb2160a48b319e1100f8d Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 18 Mar 2024 04:21:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9F=A9=E9=98=B5=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E8=B6=85=E6=97=B6=E6=97=B6=E9=95=BF=E4=B8=BA10?= =?UTF-8?q?=E5=88=86=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/src/matrix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ica-rs/src/matrix.rs b/ica-rs/src/matrix.rs index 6c32e42..1cb29c4 100644 --- a/ica-rs/src/matrix.rs +++ b/ica-rs/src/matrix.rs @@ -92,7 +92,7 @@ pub async fn start_matrix( client.add_event_handler(events::on_room_message); - let init_sync_setting = SyncSettings::new().timeout(Duration::from_secs(60)); + let init_sync_setting = SyncSettings::new().timeout(Duration::from_mins(10)); match client.sync_once(init_sync_setting).await { Ok(_) => { @@ -105,7 +105,7 @@ pub async fn start_matrix( } let mut stream_sync = - Box::pin(client.sync_stream(SyncSettings::new().timeout(Duration::from_secs(60))).await); + Box::pin(client.sync_stream(SyncSettings::new().timeout(Duration::from_mins(10))).await); while let Some(Ok(response)) = stream_sync.next().await { for room in response.rooms.join.values() {