         (trigger-update this
                         download-supervisor
                         domains-info
-                        global-config
                         local-config
-                        rw-lock))
+                        curry!))
       
       (update [^String domain]
         (trigger-update this
                         download-supervisor
                         (select-keys domains-info [domain])
-                        global-config
                         local-config
-                        rw-lock)))))
+                        curry!)))))
 
 (defn service-handler
   "Entry point to edb. `service-handler` returns a proxied

       (and @download-supervisor
            (not (.isDone @download-supervisor))))))

(defn- update-domains
  [download-supervisor domains-info global-config local-config rw-lock]
  (let [{max-kbs :max-online-download-rate-kb-s
         local-dir :local-dir} local-config
         ^DownloadState state (-> domains-info

                        local-config
                        rw-lock)
        ;; TODO: Pass curry into here, and down below on updater.
        domains-info (sync-updated! global-config local-config curry!)
        download-supervisor (atom nil)]
    (proxy [ElephantDB$Iface Shutdownable] []
      (shutdown []
