Skip to content

Commit

Permalink
feat: Support HMR
Browse files Browse the repository at this point in the history
  • Loading branch information
mdornseif committed Jan 16, 2024
1 parent d2e57e5 commit 5d13e95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
Expand Down
3 changes: 3 additions & 0 deletions src/lib/dstore-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const debug = Debug('ds:api');
/** @ignore */
const transactionAsyncLocalStorage = new AsyncLocalStorage();

// for HMR
promClient.register.removeSingleMetric('dstore_requests_seconds')
promClient.register.removeSingleMetric('dstore_failures_total')
/** @ignore */
const metricHistogram = new promClient.Histogram({
name: 'dstore_requests_seconds',
Expand Down

0 comments on commit 5d13e95

Please sign in to comment.