mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
refactor(watcher) change newWatcher to Watch
This commit is contained in:
@@ -55,7 +55,7 @@ func GetHandler(w http.ResponseWriter, req *http.Request, s Server) error {
|
||||
}
|
||||
|
||||
// Start the watcher on the store.
|
||||
watcher, err := s.Store().NewWatcher(key, recursive, sinceIndex)
|
||||
watcher, err := s.Store().Watch(key, recursive, sinceIndex)
|
||||
if err != nil {
|
||||
return etcdErr.NewError(500, key, s.Store().Index())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user