Fork me on GitHub
#ring
<
2018-04-19
>
mping08:04:49

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

mping08:04:14

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

ikitommi08:04:42

@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?

mping08:04:16

I’m not familiar with ring-async

ikitommi10:04:19

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

ikitommi10:04:18

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

mping10:04:52

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