Fix RedissonRemoteService

If requestId returns null, the free worker counter per minute is -1, which quickly becomes 0, and the service cannot be called.

Signed-off-by: jimichan <jimichan@mayabot.com>
pull/3917/head
jimi 3 years ago committed by jimichan
parent 47c8af18b8
commit 8a0b6e8860

@ -294,6 +294,8 @@ public class RedissonRemoteService extends BaseRemoteService implements RRemoteS
// poll method may return null value // poll method may return null value
if (requestId == null) { if (requestId == null) {
// Because the previous code is already -1, it must be +1 before returning, otherwise the counter will become 0 soon
entry.getCounter().incrementAndGet();
return; return;
} }

Loading…
Cancel
Save