fixup! feat(protocol): add piggybackAck support

This commit is contained in:
Szymon Lesisz
2026-02-19 16:18:35 +01:00
parent 3af5ba3dd9
commit 33bfc1ace8
2 changed files with 5 additions and 3 deletions

View File

@@ -370,7 +370,9 @@ export abstract class AbstractApiTransport extends AbstractTransport {
signal,
logger: this.logger,
});
thpState?.sync('send', name);
if (thpState && !thpState.isPiggybackAckEnabled) {
thpState.sync('send', name);
}
} else {
sendResult = await sendChunks(chunks, apiWrite);
}

View File

@@ -299,8 +299,8 @@ export class BridgeTransport extends AbstractTransport {
if (!response.success) {
return response;
}
if (protocol.name === 'v2') {
thpState?.sync('send', name);
if (protocol.name === 'v2' && thpState && !thpState.isPiggybackAckEnabled) {
thpState.sync('send', name);
}
return this.success(undefined);