feat(stream watchers) add stream watcher support

This commit is contained in:
Xiang Li
2014-01-09 15:28:33 +08:00
parent 6b77b94127
commit 22a25a18b3
7 changed files with 151 additions and 65 deletions

View File

@@ -25,7 +25,7 @@ func WatchKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error {
}
// Start the watcher on the store.
watcher, err := s.Store().Watch(key, false, sinceIndex)
watcher, err := s.Store().Watch(key, false, false, sinceIndex)
if err != nil {
return etcdErr.NewError(500, key, s.Store().Index())
}