michalmuskala / plug_attack

A plug building toolkit for blocking and throttling abusive requests
420 stars 21 forks source link

Use Plug.Builder insted of Plug behaviour (compatible with recent ver… #15

Closed jeanparpaillon closed 5 years ago

jeanparpaillon commented 5 years ago

…sions of Plug)

michalmuskala commented 5 years ago

What's the benefit of doing this?

jeanparpaillon commented 5 years ago

First, sorry for the noise in the commit, my code formatter :/

Without use Plug.Builder, it does not compile because of missing halt function. I have not checked deeply but I suppose use Plug.Builder imports some functions

jeanparpaillon commented 5 years ago

ping

michalmuskala commented 5 years ago

Ah, this is fixed by using the fully qualified names e.g. Plug.Conn.halt() instead of just halt(). Fixed in master, a release will follow soon.

jeanparpaillon commented 5 years ago

Got it, thanks !