Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mairatma committed Oct 2, 2023
1 parent 8d7d6a9 commit 44170b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/service/metrics/requestMetricsMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { finished as onStreamFinished } from 'stream'
import { hrToMillisFloat } from '../../utils'
import { ServiceContext } from '../worker/runtime/typings'
import {
createConcurrentRequestsInstrument,
createRequestsResponseSizesInstrument,
Expand All @@ -9,6 +8,7 @@ import {
createTotalRequestsInstrument,
RequestsMetricLabels,
} from '../tracing/metrics/instruments'
import { ServiceContext } from '../worker/runtime/typings'


export const addRequestMetricsMiddleware = () => {
Expand Down Expand Up @@ -55,7 +55,7 @@ export const addRequestMetricsMiddleware = () => {
},
hrToMillisFloat(process.hrtime(start))
)

concurrentRequests.dec(1)
}

Expand Down
2 changes: 1 addition & 1 deletion src/service/worker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import { MetricsAccumulator } from '../../metrics/MetricsAccumulator'
import { getService } from '../loaders'
import { logOnceToDevConsole } from '../logger/console'
import { LogLevel } from '../logger/logger'
import { addRequestMetricsMiddleware } from '../metrics/requestMetricsMiddleware'
import { TracerSingleton } from '../tracing/TracerSingleton'
import { addTracingMiddleware } from '../tracing/tracingMiddlewares'
import { addRequestMetricsMiddleware } from '../metrics/requestMetricsMiddleware'
import { addProcessListeners, logger } from './listeners'
import {
healthcheckHandler,
Expand Down

0 comments on commit 44170b7

Please sign in to comment.