Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Remove nil in nats response
Browse files Browse the repository at this point in the history
New style of evoking barrier callback get rid of the reply=nil in nats response

Change-Id: If8eacb57ce677f0643f148e3bb377a7359c7e96d
  • Loading branch information
Andrew Liu committed Nov 3, 2011
1 parent 2cda488 commit 9375035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/lib/base/provisioner.rb
Expand Up @@ -254,7 +254,7 @@ def provision_service(request, prov_handle=nil, &blk)
provision_node(request, responses, prov_handle, blk)
end
end
subscription = @node_nats.request("#{service_name}.discover", &barrier.callback)
subscription = @node_nats.request("#{service_name}.discover") {|msg| barrier.call(msg)}
rescue => e
@logger.warn(e)
blk.call(internal_fail)
Expand Down

0 comments on commit 9375035

Please sign in to comment.