fix redisscheduler #583

pull/158/merge
yihua.huang 8 years ago
parent 818a2b2408
commit b879b0eed0

@ -48,7 +48,7 @@ public class RedisScheduler extends DuplicateRemovedScheduler implements Monitor
public boolean isDuplicate(Request request, Task task) {
Jedis jedis = pool.getResource();
try {
return jedis.sadd(getSetKey(task), request.getUrl()) > 0;
return jedis.sadd(getSetKey(task), request.getUrl()) == 0;
} finally {
pool.returnResource(jedis);
}

Loading…
Cancel
Save