Improve Name2Key support

This commit is contained in:
Casper Warden
2022-02-27 13:09:12 +00:00
parent 3e56ab2d5f
commit 487907fb85
5 changed files with 122 additions and 114 deletions

View File

@@ -184,10 +184,6 @@ export class Circuit
let subscription: null | Subscription = null;
let timeout: Timer | null = null;
const receivedChunks: { [key: number]: Buffer } = {};
const progress = setInterval(() =>
{
console.log( ' ... Got ' + Object.keys(receivedChunks).length + ' packets');
}, 5000);
const resetTimeout = function(): void
{
if (timeout !== null)
@@ -200,7 +196,6 @@ export class Circuit
{
subscription.unsubscribe();
}
clearInterval(progress);
reject(new Error('Xfer Timeout'));
}, 10000);
};
@@ -241,7 +236,6 @@ export class Circuit
{
subscription.unsubscribe();
}
clearInterval(progress);
reject(new Error('Xfer Aborted'));
}
break;
@@ -300,7 +294,6 @@ export class Circuit
{
subscription.unsubscribe();
}
clearInterval(progress);
const buf = Buffer.concat(conc);
if (buf.length !== dataSize)
{