Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d579684

Browse files
authored
fix: throttle leading and trailing event (#892)
1 parent 4d16714 commit d579684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-js/src/infrastructure/controllers/events.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class EventsController {
6161
'download.event',
6262
).pipe(
6363
map((downloadState) => ({ data: downloadState })),
64-
throttleTime(1000, undefined, { trailing: true }),
64+
throttleTime(1000, undefined, { leading: true, trailing: true }),
6565
);
6666

6767
return merge(

0 commit comments

Comments
 (0)