diff --git a/.taprc b/.taprc
index c1f21b9..f22a32e 100644
--- a/.taprc
+++ b/.taprc
@@ -1,4 +1,3 @@
jobs: 1
-disable-coverage: true
files:
- test/**/*.test.js
diff --git a/README.md b/README.md
index c8ef382..13b9f56 100644
--- a/README.md
+++ b/README.md
@@ -435,6 +435,12 @@ The response will have the following headers if `enableDraftSpec` is `true`:
|`ratelimit-reset` | how many seconds must pass before the rate limit resets
|`retry-after` | contains the same value in time as `ratelimit-reset`
+### Contribute
+To run tests locally, you need a Redis instance that you can launch with this command:
+```
+npm run redis
+```
+
## License
**[MIT](https://github.com/fastify/fastify-rate-limit/blob/master/LICENSE)**
diff --git a/index.js b/index.js
index cfcab34..40413b5 100644
--- a/index.js
+++ b/index.js
@@ -181,7 +181,7 @@ function mergeParams (...params) {
}
function addRouteRateHook (pluginComponent, params, routeOptions) {
- const hook = params.hook || defaultHook
+ const hook = params.hook
const hookHandler = rateLimitRequestHandler(pluginComponent, params)
if (Array.isArray(routeOptions[hook])) {
routeOptions[hook].push(hookHandler)