events-backend: always use batch size 10 for events bus

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-05-27 11:26:56 +02:00
parent 6bc5b882d2
commit 24b86599c7
@@ -16,7 +16,7 @@
import { EventParams } from '@backstage/plugin-events-node';
import { EventBusStore } from './types';
const MAX_BATCH_SIZE = 5;
const MAX_BATCH_SIZE = 10;
export class MemoryEventBusStore implements EventBusStore {
#events = new Array<EventParams & { seq: number; consumedBy: Set<string> }>();