Skip to content

Commit 117b1e9

Browse files
committed
refactor: move failure state record to seperate file
1 parent 7da18dc commit 117b1e9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package org.togetherjava.tjbot.features.rss;
2+
3+
import java.time.ZonedDateTime;
4+
5+
record FailureState(int count, ZonedDateTime lastFailure) {
6+
}

application/src/main/java/org/togetherjava/tjbot/features/rss/RSSHandlerRoutine.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@
7272
*/
7373
public final class RSSHandlerRoutine implements Routine {
7474

75-
private record FailureState(int count, ZonedDateTime lastFailure) {
76-
}
77-
7875
private static final Logger logger = LoggerFactory.getLogger(RSSHandlerRoutine.class);
7976
private static final int MAX_CONTENTS = 1000;
8077
private static final ZonedDateTime ZONED_TIME_MIN =

0 commit comments

Comments
 (0)