Source

resizer / src / resizer / core.clj

Diff from to

src/resizer/core.clj

         [resizer.resizer :as rz]
         [resizer.fabric :as rf]))
 
-(def exchanges [
-                {:name "cloudstagram-broadcast-newimage" :type "fanout" :opts {:durable true}}
-                {:name "cloudstagram-new-image" :type "direct" :opts {:durable true}}
-                {:name "cloudstagram-upload" :type "direct" :opts {:durable true}}
-                ])
+(def exchanges [{:name "cloudstagram-broadcast-newimage" :type "fanout"}
+                {:name "cloudstagram-new-image" :type "direct"}
+                {:name "cloudstagram-upload" :type "direct"}])
 
-(defn -main []
+(defn -main
+  []
   (println "Connecting to Mongodb")
   (rz/mongo-connect)
   (println "Initializing Fabric")
   (rf/init-fabric exchanges)
   (println "Starting RabbitMQ Consumers")
-  (rc/start-consumer))
+  (rc/start-consumer)
+  (println "App Running"))