Skip to content

Commit

Permalink
UPLOAD 时超时设置为300s
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-cq committed Mar 2, 2024
1 parent c72d21a commit 4bb027a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions alist_sync/d_worker.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import atexit
import datetime
import logging
import os
import threading
import time
from pathlib import Path
Expand Down Expand Up @@ -165,6 +164,7 @@ def copy_single_stream(self):
"File-Path": urllib.parse.quote(str(self.target_path.as_posix())),
},
content=fs,
timeout=300,
)

assert res.code == 200
Expand All @@ -182,10 +182,6 @@ def copy_type(self):
self.target_path.parent.mkdir(parents=True, exist_ok=True)
self.copy_single_stream()

assert (
self.target_path.re_stat(retry=5, timeout=2).size
== self.source_path.stat().size
)
return self.update(status="copied")

def delete_type(self):
Expand Down

0 comments on commit 4bb027a

Please sign in to comment.