ar-io / arns-service

Koa microservice that leverages Warp to support the ArNS Portal and ar.io observers.
https://api.arns.app
GNU Affero General Public License v3.0
19 stars 4 forks source link

fix(middleware): instantiate middleware outside of handler function t… #12

Closed dtfiedler closed 1 year ago

dtfiedler commented 1 year ago

…o avoid overwriting on each request

Identified by @fedellen in payment-service that these are getting reinstantiated on each request. Would likely lead to poor warp caching on heavy requests.