9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-19 15:09:24 +00:00

Update RedisManager.java

This commit is contained in:
XiaoMoMi
2024-07-31 22:46:58 +08:00
parent aead898816
commit 9f32931ee1

View File

@@ -364,7 +364,7 @@ public class RedisManager extends AbstractStorage {
public BlockingThreadTask() { public BlockingThreadTask() {
Thread thread = new Thread(() -> { Thread thread = new Thread(() -> {
var map = new HashMap<String, StreamEntryID>(); var map = new HashMap<String, StreamEntryID>();
map.put(getStream(), StreamEntryID.LAST_ENTRY); map.put(getStream(), StreamEntryID.XREAD_NEW_ENTRY);
while (!this.stopped) { while (!this.stopped) {
try { try {
var connection = getJedis(); var connection = getJedis();