Skip to content

Commit 8d8130d

Browse files
jjzhang332yingxuan
andauthored
chore: Modify the persistent cache task API definition (#577)
Signed-off-by: yingxuan <[email protected]> Co-authored-by: yingxuan <[email protected]>
1 parent 5022ca0 commit 8d8130d

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

cypress/fixtures/resource/persistent-cache-task/persistent-cache-task.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@
7070
"used_percent": 1
7171
},
7272
"network": {
73-
"download_rate": 1000,
74-
"download_rate_limit": 4000,
73+
"rx_bandwidth": 1000,
74+
"max_rx_bandwidth": 4000,
7575
"idc": "HangZhou",
7676
"location": "HangZhou",
7777
"tcp_connection_count": 2,
78-
"upload_rate": 1000,
79-
"upload_rate_limit": 20000,
78+
"tx_bandwidth": 1000,
79+
"max_tx_bandwidth": 20000,
8080
"upload_tcp_connection_count": 4
8181
},
8282
"os": "ios",
@@ -152,13 +152,13 @@
152152
"used_percent": 1
153153
},
154154
"network": {
155-
"download_rate": 1000,
156-
"download_rate_limit": 4000,
155+
"rx_bandwidth": 1000,
156+
"max_rx_bandwidth": 4000,
157157
"idc": "HangZhou",
158158
"location": "HangZhou",
159159
"tcp_connection_count": 2,
160-
"upload_rate": 1000,
161-
"upload_rate_limit": 20000,
160+
"tx_bandwidth": 1000,
161+
"max_tx_bandwidth": 20000,
162162
"upload_tcp_connection_count": 4
163163
},
164164
"os": "ios",
@@ -234,13 +234,13 @@
234234
"used_percent": 1
235235
},
236236
"network": {
237-
"download_rate": 1000,
238-
"download_rate_limit": 4000,
237+
"rx_bandwidth": 1000,
238+
"max_rx_bandwidth": 4000,
239239
"idc": "HangZhou",
240240
"location": "HangZhou",
241241
"tcp_connection_count": 2,
242-
"upload_rate": 1000,
243-
"upload_rate_limit": 20000,
242+
"tx_bandwidth": 1000,
243+
"max_tx_bandwidth": 20000,
244244
"upload_tcp_connection_count": 4
245245
},
246246
"os": "Linux",
@@ -316,13 +316,13 @@
316316
"used_percent": 1
317317
},
318318
"network": {
319-
"download_rate": 1000,
320-
"download_rate_limit": 4000,
319+
"rx_bandwidth": 1000,
320+
"max_rx_bandwidth": 4000,
321321
"idc": "HangZhou",
322322
"location": "HangZhou",
323323
"tcp_connection_count": 2,
324-
"upload_rate": 1000,
325-
"upload_rate_limit": 20000,
324+
"tx_bandwidth": 1000,
325+
"max_tx_bandwidth": 20000,
326326
"upload_tcp_connection_count": 4
327327
},
328328
"os": "ios",
@@ -398,13 +398,13 @@
398398
"used_percent": 1
399399
},
400400
"network": {
401-
"download_rate": 1000,
402-
"download_rate_limit": 4000,
401+
"rx_bandwidth": 1000,
402+
"max_rx_bandwidth": 4000,
403403
"idc": "HangZhou",
404404
"location": "HangZhou",
405405
"tcp_connection_count": 2,
406-
"upload_rate": 1000,
407-
"upload_rate_limit": 20000,
406+
"tx_bandwidth": 1000,
407+
"max_tx_bandwidth": 20000,
408408
"upload_tcp_connection_count": 4
409409
},
410410
"os": "ios",
@@ -480,13 +480,13 @@
480480
"used_percent": 1
481481
},
482482
"network": {
483-
"download_rate": 1000,
484-
"download_rate_limit": 4000,
483+
"rx_bandwidth": 1000,
484+
"max_rx_bandwidth": 4000,
485485
"idc": "HangZhou",
486486
"location": "HangZhou",
487487
"tcp_connection_count": 2,
488-
"upload_rate": 1000,
489-
"upload_rate_limit": 20000,
488+
"tx_bandwidth": 1000,
489+
"max_tx_bandwidth": 20000,
490490
"upload_tcp_connection_count": 4
491491
},
492492
"os": "ios",

src/lib/api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,13 +1186,13 @@ export interface persistentCacheTasksPeersResponse {
11861186
used_percent: number;
11871187
};
11881188
network: {
1189-
download_rate: number;
1190-
download_rate_limit: number;
1189+
rx_bandwidth: number;
1190+
max_rx_bandwidth: number;
11911191
idc: string;
11921192
location: string;
11931193
tcp_connection_count: number;
1194-
upload_rate: number;
1195-
upload_rate_limit: number;
1194+
tx_bandwidth: number;
1195+
max_tx_bandwidth: number;
11961196
upload_tcp_connection_count: number;
11971197
};
11981198
os: string;

0 commit comments

Comments
 (0)