S VIVEGANANDAN commited on
Commit ·
9d49af3
1
Parent(s): d413ec9
Speed up default single-token download concurrency
Browse files
WebStreamer/utils/custom_dl.py
CHANGED
|
@@ -136,7 +136,7 @@ class ByteStreamer:
|
|
| 136 |
location = await self.get_location(file_id)
|
| 137 |
|
| 138 |
try:
|
| 139 |
-
concurrency = len(sessions)
|
| 140 |
tasks = {}
|
| 141 |
next_part = 1
|
| 142 |
fetch_part = 1
|
|
|
|
| 136 |
location = await self.get_location(file_id)
|
| 137 |
|
| 138 |
try:
|
| 139 |
+
concurrency = max(len(sessions), 4)
|
| 140 |
tasks = {}
|
| 141 |
next_part = 1
|
| 142 |
fetch_part = 1
|