 
 (defn init []
   (let [bucket-names (cfg :create-buckets)
-        credentials (cfg :credentials)]
+        credentials  (cfg :credentials)]
     (log/info "Creating configured buckets")
     (doseq [bucket-name bucket-names]
       (when-not (some #(= % bucket-name) (s3/list-buckets credentials))

            [mount.core :as mnt]
            [aws.sdk.s3 :as s3]
            [clojure.tools.logging :as log]))


;; TODO add support for multiple stores



(mnt/defstate store
  :start (init))
