mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
feat(stream watchers) add stream watcher support
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user