stuck slot subscriber causing cahce mis
This commit is contained in:
@@ -275,7 +275,9 @@ const main = async (): Promise<void> => {
|
|||||||
type: 'websocket',
|
type: 'websocket',
|
||||||
commitment: stateCommitment,
|
commitment: stateCommitment,
|
||||||
};
|
};
|
||||||
slotSubscriber = new SlotSubscriber(connection);
|
slotSubscriber = new SlotSubscriber(connection, {
|
||||||
|
resubTimeoutMs: 5000
|
||||||
|
});
|
||||||
await slotSubscriber.subscribe();
|
await slotSubscriber.subscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -768,7 +770,7 @@ const main = async (): Promise<void> => {
|
|||||||
const parsedResponse = JSON.parse(redisResponse);
|
const parsedResponse = JSON.parse(redisResponse);
|
||||||
if (
|
if (
|
||||||
parsedResponse &&
|
parsedResponse &&
|
||||||
Math.abs(dlobProvider.getSlot() - parsedResponse.slot) <
|
dlobProvider.getSlot() - parsedResponse.slot <
|
||||||
SLOT_STALENESS_TOLERANCE
|
SLOT_STALENESS_TOLERANCE
|
||||||
) {
|
) {
|
||||||
if (side === 'bid') {
|
if (side === 'bid') {
|
||||||
|
|||||||
Reference in New Issue
Block a user