ring

2018-04-19T08:15:49.000389Z

Hi all, I'm using ring-instrument and am hitting the following error:

Wrong number of args (3) passed to: instrument/eval25027/instrument--25028/fn--25029

2018-04-19T08:16:14.000201Z

I basically added ring-instrument to this proj: https://github.com/metosin/c2

ikitommi 2018-04-19T08:32:42.000426Z

@mping c2 uses ring-async, which requires middleware to be 3-arity. ring-instrument doesn’t support that I guess? Where is the code for it?

2018-04-19T08:43:16.000613Z

I’m not familiar with ring-async

ikitommi 2018-04-19T10:03:19.000114Z

@mping yeah, it's sync only. Adding async support is easy, here's an example: https://github.com/ring-clojure/ring/wiki/Concepts#middleware

ikitommi 2018-04-19T10:04:18.000208Z

if you don't need async, just change :async? to false in project.clj

2018-04-19T10:14:52.000209Z

I’ll take a look, thanks for the tips!