 (def worker-queue "myshelf.worker")
 (def reply-queue "myshelf.reply")
 (def goodreads-creds (atom {}))
-(def goodreads-key (atom nil))
-(def goodreads-secret (atom nil))
+(def goodreads-key (System/getenv "GOODREADS_KEY"))
+(def goodreads-secret (System/getenv "GOODREADS_SECRET"))
 
 (defn add-access-token
   [user-handle creds]

  [channel user-handle]
  (let [creds ((keyword user-handle) @goodreads-creds)
        consumer (or (:consumer creds)
                     (get-consumer @goodreads-key @goodreads-secret))
        request-token (or (:request-token creds)
                          (get-request-token consumer))
        approval-uri (find-approval-uri consumer request-token)]

        (String. "UTF-8")
        (json/parse-string true))))

(defn -main [& args]
  (let [conn (lc/connect connection-params)
        channel (lch/open conn)]
    (lq/declare channel worker-queue {:auto-delete false})
    (lcs/subscribe channel worker-queue handle-message {:auto-ack true})))
