Skip to content
Snippets Groups Projects
Verified Commit c86a48da authored by Mateusz Tyszczak's avatar Mateusz Tyszczak :scroll:
Browse files

Pass providers to mediator as array instead of map due to MapIterator bugs

parent 60b086b9
No related branches found
No related tags found
1 merge request!25Add missing filters and providers
Pipeline #114197 passed
...@@ -120,7 +120,7 @@ test.describe("WorkerBee Bot events test", () => { ...@@ -120,7 +120,7 @@ test.describe("WorkerBee Bot events test", () => {
res(); res();
}), }),
new Promise((_, rej) => { setTimeout(rej, hiveBlockInterval * 2, new Error("Test timeout")); }) new Promise((_, rej) => { setTimeout(rej, hiveBlockInterval * 3, new Error("Test timeout")); })
]); ]);
bot.stop(); bot.stop();
......
...@@ -61,7 +61,7 @@ export class QueenBee<TPreviousSubscriberData extends object = {}> { ...@@ -61,7 +61,7 @@ export class QueenBee<TPreviousSubscriberData extends object = {}> {
// Optimize by not creating a logical OR filter for only one filter // Optimize by not creating a logical OR filter for only one filter
const orFilter: FilterBase = committedFilters.length === 1 ? committedFilters[0] : new LogicalOrFilter(this.worker, committedFilters); const orFilter: FilterBase = committedFilters.length === 1 ? committedFilters[0] : new LogicalOrFilter(this.worker, committedFilters);
this.worker.mediator.registerListener(observer, orFilter, this.providers.values()); this.worker.mediator.registerListener(observer, orFilter, Array.from(this.providers.values()));
this.filterContainers = []; this.filterContainers = [];
this.providers = new Map(); this.providers = new Map();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment