记得上下班打卡 | git大法好,push需谨慎

Commit e886d089 authored by 张国柄's avatar 张国柄

~queue;

parent 5f7fc975
......@@ -65,7 +65,7 @@ public class RedisStreamConfig {
System.out.println("errorHandler: " + t.getMessage());
})
// 超时时间,设置为0,表示不超时(超时后会抛出异常)
.pollTimeout(Duration.ZERO)
.pollTimeout(Duration.ofMillis(1))
.build();
return StreamMessageListenerContainer.create(factory, options);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment