Created
February 25, 2022 14:03
-
-
Save pjstadig/700016d2c7a8dc7fefc8af679e9675cd to your computer and use it in GitHub Desktop.
Multimethods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns stadig.main | |
(:require | |
[stadig.storage.methods :as storage] | |
[stadig.storage.s3 :as s3])) | |
(defn -main | |
[& args] | |
;; ... initialize some things ... | |
(let [access-key (System/getenv "AWS_ACCESS_KEY_ID") | |
secret-key (System/getenv "AWS_SECRET_ACCESS_KEY") | |
storage-conn (s3/connect access-key secret-key)] | |
(try | |
;; ... initialize some more things, or maybe just do stuff ... | |
(finally | |
(storage/close storage-conn))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment