open-consul/watch
Harmen 0d550ff4b8 reset watch's lastIndex on error
When a -dev agent is restarted it'll have a clean state, including a
reset index. A watch() will reconnect after a restart, but it won't
notice that the index counter has reset and it will keep waiting until
we reached the old index again, which is wrong. Resetting the index will
prevent that and makes watch work for -dev agents.
2016-12-29 21:58:46 +01:00
..
funcs.go Moves stale code to same spot and adds it everywhere that supports it. 2016-08-10 15:49:51 -07:00
funcs_test.go Update Check API to use constants 2016-04-23 16:01:59 -07:00
plan.go reset watch's lastIndex on error 2016-12-29 21:58:46 +01:00
plan_test.go watch: Remove DSL in place of JSON 2014-08-21 11:38:44 -07:00
watch.go api: initial import from armon/consul-api 2015-01-06 10:40:00 -08:00
watch_test.go watch: Remove DSL in place of JSON 2014-08-21 11:38:44 -07:00