Skip to content

Commit

Permalink
code4craft#702 Refactor: rename CheckForAdditionalInfo to checkForAdd…
Browse files Browse the repository at this point in the history
…itionalInfo
  • Loading branch information
code4craft committed Nov 30, 2017
1 parent b0bf1a9 commit c701fe8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ protected void pushWhenNoDuplicate(Request request, Task task) {
Jedis jedis = pool.getResource();
try {
jedis.rpush(getQueueKey(task), request.getUrl());
if (CheckForAdditionalInfo(request)) {
if (checkForAdditionalInfo(request)) {
String field = DigestUtils.shaHex(request.getUrl());
String value = JSON.toJSONString(request);
jedis.hset((ITEM_PREFIX + task.getUUID()), field, value);
}
} finally {
pool.returnResource(jedis);
jedis.close();
}
}

private boolean CheckForAdditionalInfo(Request request) {
private boolean checkForAdditionalInfo(Request request) {
if (request == null) {
return false;
}
Expand Down

0 comments on commit c701fe8

Please sign in to comment.