зеркало из https://github.com/microsoft/etcd3.git
feat(watch): Allow setting the starting revision
This commit is contained in:
Родитель
ddfedc76a0
Коммит
ca42632640
|
@ -394,6 +394,14 @@ export class WatchBuilder {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Watch starting from a specific revision.
|
||||||
|
*/
|
||||||
|
public startRevision(revision: string): this {
|
||||||
|
this.request.start_revision = revision;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* watcher() creates but does not connect the watcher. Use create() instead;
|
* watcher() creates but does not connect the watcher. Use create() instead;
|
||||||
* this is mostly for testing purposes.
|
* this is mostly for testing purposes.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче