Skip to content

Commit 840ee27

Browse files
author
aden.chen
committed
Reapply "Handling redis timeout in RedisSubscriber"
This reverts commit b8636a7.
1 parent 79c6bf7 commit 840ee27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Infrastructure/BotSharp.Core/Infrastructures/Events/RedisSubscriber.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ public async Task SubscribeAsync(string channel, string group, int? port, bool p
8181
await HandleGroupMessage(db, channel, group, consumer, received, $"{channel}-Error");
8282
}
8383
}
84+
catch (RedisTimeoutException)
85+
{
86+
_logger.LogWarning($"Redis timeout for channel {channel}, will retry in next cycle");
87+
}
8488
catch (Exception ex)
8589
{
8690
_logger.LogError($"Error processing message: {ex.Message}\r\n{ex}");

0 commit comments

Comments
 (0)