Skip to content

Commit 9e71ad7

Browse files
committed
Switch order of overflow auto-handler and user-defined event handler
1 parent f7a7a34 commit 9e71ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/engineering/swat/watch/Watcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private BiConsumer<EventHandlingWatch, WatchEvent> applyApproximateOnOverflow()
212212
case NONE:
213213
return eventHandler;
214214
case ALL:
215-
return new MemorylessRescanner(executor).andThen(eventHandler);
215+
return eventHandler.andThen(new MemorylessRescanner(executor));
216216
default:
217217
throw new UnsupportedOperationException("No event handler has been defined yet for this overflow policy");
218218
}

0 commit comments

Comments
 (0)