chore: remove sentry captureException in marketDepthProvider update (#2713)

This commit is contained in:
Bartłomiej Głownia 2023-01-25 20:58:37 +01:00 committed by GitHub
parent 7ea7edc1e2
commit 3fadda15fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -56,7 +56,6 @@ describe('market depth provider update', () => {
]; ];
expect(update(data, delta.slice(0, 1), reload)).toBe(data); expect(update(data, delta.slice(0, 1), reload)).toBe(data);
expect(update(data, delta.slice(1, 2), reload)).toBe(data); expect(update(data, delta.slice(1, 2), reload)).toBe(data);
expect(mockCaptureException).toBeCalledTimes(2);
}); });
it('restarts and captureException when there is gap in updates', () => { it('restarts and captureException when there is gap in updates', () => {

View File

@ -24,11 +24,6 @@ export const update: Update<
continue; continue;
} }
if (BigInt(delta.sequenceNumber) <= BigInt(data.depth.sequenceNumber)) { if (BigInt(delta.sequenceNumber) <= BigInt(data.depth.sequenceNumber)) {
captureException(
new Error(
`Sequence number from delta is lower or equal to last sequenceNumber for ${data.id}, ${delta.sequenceNumber} <= ${data.depth.sequenceNumber}, update skipped`
)
);
return data; return data;
} }
if (delta.previousSequenceNumber !== data.depth.sequenceNumber) { if (delta.previousSequenceNumber !== data.depth.sequenceNumber) {