Skip to content

Commit

Permalink
Also update TestMessageFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
mpfz0r committed Mar 12, 2024
1 parent 1e31d32 commit 96d4829
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
*/
package org.graylog2.plugin;

import org.graylog2.indexer.IndexSet;
import org.graylog2.indexer.messages.IndexingResultCallback;
import org.jetbrains.annotations.Nullable;
import org.joda.time.DateTime;

import java.util.Map;
Expand All @@ -39,4 +42,9 @@ public Message createMessage(Map<String, Object> fields) {
public Message createMessage(String id, Map<String, Object> newFields) {
return new Message(id, newFields);
}

@Override
public SystemMessage createSystemMessage(IndexSet indexSet, Map<String, Object> fields, @Nullable IndexingResultCallback resultCallback) {
return new SystemMessage(indexSet, fields, resultCallback);
}
}

0 comments on commit 96d4829

Please sign in to comment.