Skip to content

Commit

Permalink
chore(watchers): fix rpc method name
Browse files Browse the repository at this point in the history
  • Loading branch information
pereslavtsev committed Nov 23, 2021
1 parent 1d3ca38 commit 7435f21
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@pereslavtsev:registry=https://npm.pkg.github.com
6 changes: 3 additions & 3 deletions src/services/watchers/watchers.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ service WatchersService {
rpc UpdateWatcher (UpdateWatcherRequest) returns (Watcher);
rpc RunWatcher (GetWatcherRequest) returns (RunWatcherResponse);
rpc PauseWatcher (GetWatcherRequest) returns (PauseWatcherResponse);
rpc PauseAll (PauseAllRequest) returns (PauseAllResponse);
rpc PauseAllWatchers (PauseAllWatchersRequest) returns (PauseAllWatchersResponse);
rpc StopWatcher (GetWatcherRequest) returns (StopWatcherResponse);
rpc SubscribeWatcher(GetWatcherRequest) returns (stream SubscribeWatcherResponse) {}
}
Expand Down Expand Up @@ -47,12 +47,12 @@ message ListWatchersResponse {
string next_page_token = 2;
}

message PauseAllRequest {}
message PauseAllWatchersRequest {}

message RunWatcherResponse {}
message PauseWatcherResponse {}
message StopWatcherResponse {}
message PauseAllResponse {}
message PauseAllWatchersResponse {}

message GetWatcherRequest {
string id = 1;
Expand Down
22 changes: 11 additions & 11 deletions src/services/watchers/watchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ export interface ListWatchersResponse {
nextPageToken: string;
}

export interface PauseAllRequest {}
export interface PauseAllWatchersRequest {}

export interface RunWatcherResponse {}

export interface PauseWatcherResponse {}

export interface StopWatcherResponse {}

export interface PauseAllResponse {}
export interface PauseAllWatchersResponse {}

export interface GetWatcherRequest {
id: string;
Expand Down Expand Up @@ -110,11 +110,11 @@ export interface WatchersServiceClient {
...rest: any
): Observable<PauseWatcherResponse>;

pauseAll(
request: PauseAllRequest,
pauseAllWatchers(
request: PauseAllWatchersRequest,
metadata: Metadata,
...rest: any
): Observable<PauseAllResponse>;
): Observable<PauseAllWatchersResponse>;

stopWatcher(
request: GetWatcherRequest,
Expand Down Expand Up @@ -175,14 +175,14 @@ export interface WatchersServiceController {
| Observable<PauseWatcherResponse>
| PauseWatcherResponse;

pauseAll(
request: PauseAllRequest,
pauseAllWatchers(
request: PauseAllWatchersRequest,
metadata: Metadata,
...rest: any
):
| Promise<PauseAllResponse>
| Observable<PauseAllResponse>
| PauseAllResponse;
| Promise<PauseAllWatchersResponse>
| Observable<PauseAllWatchersResponse>
| PauseAllWatchersResponse;

stopWatcher(
request: GetWatcherRequest,
Expand All @@ -209,7 +209,7 @@ export function WatchersServiceControllerMethods() {
'updateWatcher',
'runWatcher',
'pauseWatcher',
'pauseAll',
'pauseAllWatchers',
'stopWatcher',
'subscribeWatcher',
];
Expand Down

0 comments on commit 7435f21

Please sign in to comment.