Skip to content

Instantly share code, notes, and snippets.

@dasl-
Created December 6, 2019 17:27
Show Gist options
  • Save dasl-/dad7962bf936112ec2103727986e36d9 to your computer and use it in GitHub Desktop.
Save dasl-/dad7962bf936112ec2103727986e36d9 to your computer and use it in GitHub Desktop.
diff --git a/src/main/java/com/etsy/pushbot/PushTrain.java b/src/main/java/com/etsy/pushbot/PushTrain.java
index 27d10c6..7ccef75 100644
--- a/src/main/java/com/etsy/pushbot/PushTrain.java
+++ b/src/main/java/com/etsy/pushbot/PushTrain.java
@@ -120,7 +120,9 @@ public class PushTrain extends LinkedList<PushToken>
pushBot.log(exception.getMessage());
}
- tryChecker.init();
+ boolean isWebTrain = pushBot.getWebChannel().equals(channel);
+ boolean isConfigTrain = pushBot.getConfigChannel().equals(channel);
+ tryChecker.init(isWebTrain, isConfigTrain);
for(Member member : (memberList)) {
member.onHeadOfQueue(pushBot, this, channel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment