slot staleness for vamm orders remove from cache

This commit is contained in:
Nour Alharithi
2024-06-17 09:56:53 -07:00
parent 9c9a9f9fa8
commit 8a72808c85
3 changed files with 49 additions and 45 deletions

View File

@@ -141,7 +141,9 @@ async function main() {
try {
redisChannel = getRedisChannelFromMessage(parsedMessage);
} catch (error) {
const requestChannel = sanitiseChannelForClient(parsedMessage?.channel);
const requestChannel = sanitiseChannelForClient(
parsedMessage?.channel
);
if (requestChannel) {
ws.send(
JSON.stringify({
@@ -214,7 +216,9 @@ async function main() {
try {
redisChannel = getRedisChannelFromMessage(parsedMessage);
} catch (error) {
const requestChannel = sanitiseChannelForClient(parsedMessage?.channel);
const requestChannel = sanitiseChannelForClient(
parsedMessage?.channel
);
if (requestChannel) {
console.log('Error unsubscribing from channel:', error.message);
ws.send(