Skip to content

Commit 1114591

Browse files
authored
updating config API to use v1 endpoint (#496)
* updating config API to use v1 endpoint Signed-off-by: Shivam Kumar <[email protected]> * using latest runtime rc Signed-off-by: Shivam Kumar <[email protected]> --------- Signed-off-by: Shivam Kumar <[email protected]>
1 parent b1fb0c2 commit 1114591

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
env:
3737
GOVER: 1.19
3838
DAPR_CLI_VER: 1.10.0
39-
DAPR_RUNTIME_VER: 1.10.0
39+
DAPR_RUNTIME_VER: 1.11.0-rc.5
4040
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
4141
DAPR_CLI_REF: ""
4242
DAPR_REF: ""

src/implementation/Client/GRPCClient/configuration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default class GRPCClientConfiguration implements IClientConfiguration {
5656
const client = await this.client.getClient();
5757

5858
return new Promise((resolve, reject) => {
59-
client.getConfigurationAlpha1(msg, metadata, (err, res: GetConfigurationResponse) => {
59+
client.getConfiguration(msg, metadata, (err, res: GetConfigurationResponse) => {
6060
if (err) {
6161
return reject(err);
6262
}
@@ -122,7 +122,7 @@ export default class GRPCClientConfiguration implements IClientConfiguration {
122122
// and will stay open as long as the client is open
123123
// we will thus create a set with our listeners so we don't
124124
// break on multi listeners
125-
const stream = client.subscribeConfigurationAlpha1(msg, metadata);
125+
const stream = client.subscribeConfiguration(msg, metadata);
126126
let streamId: string;
127127

128128
stream.on("data", async (data: SubscribeConfigurationResponse) => {
@@ -149,7 +149,7 @@ export default class GRPCClientConfiguration implements IClientConfiguration {
149149
req.setStoreName(storeName);
150150
req.setId(streamId);
151151

152-
client.unsubscribeConfigurationAlpha1(req, (err, res: UnsubscribeConfigurationResponse) => {
152+
client.unsubscribeConfiguration(req, (err, res: UnsubscribeConfigurationResponse) => {
153153
if (err || !res.getOk()) {
154154
return reject(res.getMessage());
155155
}

0 commit comments

Comments
 (0)