correction to check for parsed response
This commit is contained in:
@@ -767,7 +767,7 @@ const main = async (): Promise<void> => {
|
|||||||
if (redisResponse) {
|
if (redisResponse) {
|
||||||
const parsedResponse = JSON.parse(redisResponse);
|
const parsedResponse = JSON.parse(redisResponse);
|
||||||
if (
|
if (
|
||||||
parsedResponse.slot &&
|
parsedResponse &&
|
||||||
Math.abs(dlobProvider.getSlot() - parsedResponse.slot) <
|
Math.abs(dlobProvider.getSlot() - parsedResponse.slot) <
|
||||||
SLOT_STALENESS_TOLERANCE
|
SLOT_STALENESS_TOLERANCE
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user