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.
- data/lib/cncflora_commons.rb +2 -7
- metadata +1 -1
data/lib/cncflora_commons.rb
CHANGED
@@ -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
|
-
|
193
|
-
|
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
|