Skip to content

Commit

Permalink
Fix code to pass the UT
Browse files Browse the repository at this point in the history
  • Loading branch information
ggKe authored and hit-lacus committed Oct 18, 2020
1 parent 6096f08 commit cb42aca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void run() {
result.startRead();
for (Record record : result) {
offserTimeout = deadline - System.currentTimeMillis();
if (!recordCachePool.offer(record, offserTimeout, TimeUnit.MILLISECONDS)) {
if (!recordCachePool.offer(record.copy(), offserTimeout, TimeUnit.MILLISECONDS)) {
logger.warn("Timeout when offer to recordCachePool, deadline: {}, offser Timeout: {}", deadline, offserTimeout);
break;
}
Expand Down

0 comments on commit cb42aca

Please sign in to comment.