We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e67bc0 commit f74a429Copy full SHA for f74a429
src/main/java/org/fluentd/logger/sender/ConstantDelayReconnector.java
@@ -14,7 +14,7 @@ public class ConstantDelayReconnector implements Reconnector {
14
15
private double wait = 50; // Default wait to 50 ms
16
17
- private int maxErrorHistorySize = 100;
+ private static final int MAX_ERROR_HISTORY_SIZE = 100;
18
19
private Deque<Long> errorHistory = new LinkedList<Long>();
20
@@ -29,7 +29,7 @@ public ConstantDelayReconnector(int wait) {
29
30
public void addErrorHistory(long timestamp) {
31
errorHistory.addLast(timestamp);
32
- if (errorHistory.size() > maxErrorHistorySize) {
+ if (errorHistory.size() > MAX_ERROR_HISTORY_SIZE) {
33
errorHistory.removeFirst();
34
}
35
0 commit comments