Skip to content

Commit

Permalink
[ISSUE #9305] fix bug in ClientWorker.resourceBuild (#9306)
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorHe1 authored Oct 12, 2022
1 parent 1a1ef02 commit 8aa2e0a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1012,20 +1012,20 @@ private RequestResource resourceBuild(Request request) {
if (request instanceof ConfigQueryRequest) {
String tenant = ((ConfigQueryRequest) request).getTenant();
String group = ((ConfigQueryRequest) request).getGroup();
String dataId = ((ConfigQueryRequest) request).getGroup();
String dataId = ((ConfigQueryRequest) request).getDataId();
return buildResource(tenant, group, dataId);
}
if (request instanceof ConfigPublishRequest) {
String tenant = ((ConfigPublishRequest) request).getTenant();
String group = ((ConfigPublishRequest) request).getGroup();
String dataId = ((ConfigPublishRequest) request).getGroup();
String dataId = ((ConfigPublishRequest) request).getDataId();
return buildResource(tenant, group, dataId);
}

if (request instanceof ConfigRemoveRequest) {
String tenant = ((ConfigRemoveRequest) request).getTenant();
String group = ((ConfigRemoveRequest) request).getGroup();
String dataId = ((ConfigRemoveRequest) request).getGroup();
String dataId = ((ConfigRemoveRequest) request).getDataId();
return buildResource(tenant, group, dataId);
}
return RequestResource.configBuilder().build();
Expand Down Expand Up @@ -1059,7 +1059,7 @@ public boolean publishConfig(String dataId, String group, String tenant, String
}
} catch (Exception e) {
LOGGER.warn("[{}] [publish-single] error, dataId={}, group={}, tenant={}, code={}, msg={}",
this.getName(), dataId, group, tenant, "unkonw", e.getMessage());
this.getName(), dataId, group, tenant, "unknown", e.getMessage());
return false;
}
}
Expand Down

0 comments on commit 8aa2e0a

Please sign in to comment.