cncflora_commons 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cncflora_commons.rb +2 -7
  2. metadata +1 -1
@@ -187,14 +187,9 @@ end
187
187
 
188
188
  def onchange(etcd,prefix="")
189
189
  Thread.new do
190
- last = ""
191
190
  while true do
192
- actual = http_get("#{ etcd }/v2/keys/?recursive=true")
193
- if actual != last then
194
- yield etcd2config(etcd,prefix)
195
- last = actual
196
- end
197
- sleep 4
191
+ http_get("#{ etcd }/v2/keys/?recursive=true&wait=true")
192
+ yield etcd2config(etcd,prefix)
198
193
  end
199
194
  end
200
195
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cncflora_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: