chore: remove sentry captureException in marketDepthProvider update (#2713)
This commit is contained in:
parent
7ea7edc1e2
commit
3fadda15fd
@ -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', () => {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user