From 558c10aa92feaaee0145a9fdb6ddb9fc2752cecf Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Wed, 28 Aug 2019 09:51:44 +0300 Subject: [PATCH] Fix integrant resume-key https://github.com/Deraen/sass4clj/pull/30/ --- src/less4clj/integrant.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/less4clj/integrant.clj b/src/less4clj/integrant.clj index 09831d9..b2d1e97 100644 --- a/src/less4clj/integrant.clj +++ b/src/less4clj/integrant.clj @@ -5,15 +5,15 @@ (defmethod ig/init-key ::less4clj [_ options] (api/start options)) -(defmethod ig/halt-key! ::less4clj [this options] - (api/stop this)) +(defmethod ig/halt-key! ::less4clj [_ watcher] + (api/stop watcher)) -(defmethod ig/suspend-key! ::less4clj [this options] +(defmethod ig/suspend-key! ::less4clj [_ watcher] nil) (defmethod ig/resume-key ::less4clj [key opts old-opts old-impl] (if (= opts old-opts) old-impl (do - (ig/halt-key! key old-opts) + (ig/halt-key! key old-impl) (ig/init-key key opts))))