From c0476cbfa294b7e9158b30c9d85362b22f89ceca Mon Sep 17 00:00:00 2001 From: arkohut <39525455+arkohut@users.noreply.github.com> Date: Thu, 18 Jul 2024 23:28:44 +0800 Subject: [PATCH] feat(scan): change timeout to 60s --- memos/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memos/commands.py b/memos/commands.py index 49c48d5..ae14240 100644 --- a/memos/commands.py +++ b/memos/commands.py @@ -219,7 +219,7 @@ def scan( "trigger_webhooks_flag": "true", **({"plugins": plugins} if plugins else {}), }, - timeout=30, + timeout=60, ) if 200 <= update_response.status_code < 300: tqdm.write(f"Updated file in library: {file_path}") @@ -239,7 +239,7 @@ def scan( f"{BASE_URL}/libraries/{library_id}/entities", json=new_entity, params={"plugins": plugins} if plugins else {}, - timeout=30, + timeout=60, ) if 200 <= post_response.status_code < 300: tqdm.write(f"Added file to library: {file_path}")