integrant

v3ga 2021-07-12T08:26:18.013700Z

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

2021-07-12T08:45:08.013800Z

Shouldn't it be this?

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

👍 1
2021-07-12T08:45:20.014Z

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

v3ga 2021-07-12T08:58:28.014200Z

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

2021-07-12T08:59:59.014600Z

Great!

v3ga 2021-07-12T09:15:33.014800Z

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

😄 3