Skip to content

Commit

Permalink
Merge pull request #2 from Figedi/fix-deprecation-warning
Browse files Browse the repository at this point in the history
fix: fixes fastify5 deprecation warning (mix callback styles)
  • Loading branch information
Figedi authored Apr 25, 2024
2 parents c28ecd8 + c2b0be7 commit 59ac6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ServerRecorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class FastifyMetrics {
}

export const fastifyMetering = fastifyPlugin<IMetricsPluginOptions>(
async (fastify: FastifyInstance, options: IMetricsPluginOptions, next: () => void) => {
(fastify: FastifyInstance, options: IMetricsPluginOptions, next: () => void) => {
new FastifyMetrics({ fastify, options });
next();
},
Expand Down

0 comments on commit 59ac6a0

Please sign in to comment.