tdweb: preformance bugfixes
GitOrigin-RevId: 626f2cb111f5e47254e6b155bc9bd4f7b2d42829
This commit is contained in:
parent
cee68e5a48
commit
04c9680c53
@ -169,7 +169,7 @@ class TdClient {
|
||||
'receive from worker: ',
|
||||
JSON.parse(
|
||||
JSON.stringify(response, (key, value) => {
|
||||
if (key === 'arr') {
|
||||
if (key === 'arr' || key == 'data') {
|
||||
return undefined;
|
||||
}
|
||||
return value;
|
||||
@ -233,7 +233,7 @@ class TdClient {
|
||||
}
|
||||
for (const key in response) {
|
||||
const field = response[key];
|
||||
if (field && typeof field === 'object') {
|
||||
if (field && typeof field === 'object' && key != 'data' && key != 'arr') {
|
||||
response[key] = this.prepareResponse(field);
|
||||
}
|
||||
}
|
||||
@ -579,7 +579,7 @@ class FileManager {
|
||||
file_id: info.file.id,
|
||||
offset: offset
|
||||
});
|
||||
log.error(count, size);
|
||||
//log.error(count, size);
|
||||
if (!size) {
|
||||
size = count.count;
|
||||
} else if (size > count.count) {
|
||||
@ -593,7 +593,7 @@ class FileManager {
|
||||
});
|
||||
res.data = new Blob([res.data]);
|
||||
res.transaction_id = -2;
|
||||
log.error(res);
|
||||
//log.error(res);
|
||||
return res;
|
||||
} catch (e) {
|
||||
log.info('readFilePart failed', info, offset, size, e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user