Skip to content

Commit

Permalink
call next directly in express and restify as per koa
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Skinner committed Mar 1, 2023
1 parent 5c681e9 commit 4b02048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-express/src/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
}
}, true)

client._clientContext.run(requestClient, () => next())
client._clientContext.run(requestClient, next)
}

const errorHandler = (err, req, res, next) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-restify/src/restify.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
}
}, true)

client._clientContext.run(requestClient, () => next())
client._clientContext.run(requestClient, next)
}

const errorHandler = (req, res, err, cb) => {
Expand Down

0 comments on commit 4b02048

Please sign in to comment.