Fork me on GitHub
#integrant
<
2021-07-12
>
v3ga08:07:18

Anyone have any idea why I'm not able to stop my server like this using integrant? How would I properly get a hold of my server instance? https://gist.github.com/v3gal0g/68268567dff31fa336bae8fc5ff877d4

kwrooijen08:07:08

Shouldn't it be this?

(defmethod ig/halt-key! :oasisxd/server [_ opts]
  (-> opts
      :server
      http/stop))

👍 2
kwrooijen08:07:20

Since your ig/init-key is returning a map instead of just the server?

v3ga08:07:28

Well, yeah... that does it. Now I see... I'm still trying to get my mind around integrant. Thank you!

v3ga09:07:33

Ok now I REALLY have a good idea of how integrant works... nice.

😄 6