Permalink
Browse files

automatically restart traces

  • Loading branch information...
1 parent a7a85a7 commit b6ed72aaa0bc339e6d4645baa61e529d92605def @shimaore committed Feb 17, 2014
Showing with 7 additions and 6 deletions.
  1. +7 −6 applications/traces/agents/amqp_agent.coffee
@@ -6,9 +6,10 @@ trace_couch = require './trace_couch'
config = null
ccnq3.config (c) -> config = c
-ccnq3.amqp (c) ->
- c.exchange 'traces', {type:'topic',durable:true,autoDelete:false}, (e) ->
- c.queue "trace-requests-#{config.host}", (q) ->
- q.bind e, 'request'
- q.subscribe (doc) ->
- trace_couch config, doc
+while true
+ ccnq3.amqp (c) ->
+ c.exchange 'traces', {type:'topic',durable:true,autoDelete:false}, (e) ->
+ c.queue "trace-requests-#{config.host}", (q) ->
+ q.bind e, 'request'
+ q.subscribe (doc) ->
+ trace_couch config, doc

0 comments on commit b6ed72a

Please sign in to comment.