koajs / ratelimit

Rate limiter middleware
MIT License
485 stars 57 forks source link

where is the db instance used? #42

Closed pke closed 6 years ago

pke commented 6 years ago

It can be handed into the middleware as an option but it is never used?

OutdatedVersion commented 6 years ago

The database instance is, sort of sneakily, used here.

By assigning opts onto an empty object, db goes with it.

pke commented 6 years ago

Ah of course ;) Thanks should have looked more closely.