Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gvelez17 committed Oct 7, 2024
1 parent 2cf4533 commit 38245d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/state-management/named-task-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export class NamedTaskQueue {
*/
run<A>(name: string, task: () => Promise<A>): Promise<A> {
const queue = this.queue(name)
Metrics.observe(NAMED_TASK_QUEUE_SIZE, queue.size, {'name': name})
Metrics.count(NAMED_TASK_QUEUE_RUN, 1, {'name': name})
Metrics.observe(NAMED_TASK_QUEUE_SIZE, queue.size, { name: name })
Metrics.count(NAMED_TASK_QUEUE_RUN, 1, { name: name })
return queue.run(task).finally(() => {
this.remove(name)
})
Expand All @@ -69,8 +69,8 @@ export class NamedTaskQueue {
*/
add(name: string, task: () => Promise<void>): void {
const queue = this.queue(name)
Metrics.observe(NAMED_TASK_QUEUE_SIZE, queue.size, {'name': name})
Metrics.count(NAMED_TASK_QUEUE_ADD, 1, {'name': name})
Metrics.observe(NAMED_TASK_QUEUE_SIZE, queue.size, { name: name })
Metrics.count(NAMED_TASK_QUEUE_ADD, 1, { name: name })
queue.add(
() => task(),
() => this.remove(name)
Expand Down

0 comments on commit 38245d3

Please sign in to comment.