Skip to content

Commit 9520aa0

Browse files
authored
Merge pull request #1190 from adenchen123/master
Reapply "Handling redis timeout in RedisSubscriber"
2 parents 6c5ae4f + 840ee27 commit 9520aa0

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)