Skip to content

Commit

Permalink
Merge pull request #35 from Ricool06/dev
Browse files Browse the repository at this point in the history
Remove some unused lines (solves #29)
  • Loading branch information
ipapapa authored Oct 15, 2018
2 parents 82e5ae6 + 8af9b44 commit c8aa2cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ public class RedisDynoQueue implements DynoQueue {

private ScheduledExecutorService schedulerForUnacksProcessing;

private ScheduledExecutorService schedulerForPrefetchProcessing;

private int retryCount = 2;

public RedisDynoQueue(String redisKeyPrefix, String queueName, Set<String> allShards, String shardName) {
Expand Down Expand Up @@ -120,7 +118,6 @@ public RedisDynoQueue(Clock clock, String redisKeyPrefix, String queueName, Set<
this.prefetchedIds = new ConcurrentLinkedQueue<>();

schedulerForUnacksProcessing = Executors.newScheduledThreadPool(1);
schedulerForPrefetchProcessing = Executors.newScheduledThreadPool(1);

schedulerForUnacksProcessing.scheduleAtFixedRate(() -> processUnacks(), unackScheduleInMS, unackScheduleInMS, TimeUnit.MILLISECONDS);

Expand Down Expand Up @@ -616,7 +613,6 @@ private <R> R executeWithRetry(Callable<R> r, int retryCount) {
@Override
public void close() throws IOException {
schedulerForUnacksProcessing.shutdown();
schedulerForPrefetchProcessing.shutdown();
monitor.close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import static org.junit.Assert.assertTrue;

import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
Expand Down

0 comments on commit c8aa2cf

Please sign in to comment.