cncflora_commons 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|