Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

automatically restart traces

  • Loading branch information...
commit b6ed72aaa0bc339e6d4645baa61e529d92605def 1 parent a7a85a7
@shimaore authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 applications/traces/agents/amqp_agent.coffee
View
13 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
Please sign in to comment.
Something went wrong with that request. Please try again.