This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch 2.8.x
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/2.8.x by this push:
new 54c1e95ea [#4054] make the operationConfig lazy to load (#4109)
54c1e95ea is described below
commit 54c1e95ea60158d173887ea6b285eb846a86d1d1
Author: yanghao <[email protected]>
AuthorDate: Mon Dec 11 09:32:40 2023 +0800
[#4054] make the operationConfig lazy to load (#4109)
---
.../java/org/apache/servicecomb/core/definition/OperationMeta.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git
a/core/src/main/java/org/apache/servicecomb/core/definition/OperationMeta.java
b/core/src/main/java/org/apache/servicecomb/core/definition/OperationMeta.java
index 4453597bc..bdcbd5786 100644
---
a/core/src/main/java/org/apache/servicecomb/core/definition/OperationMeta.java
+++
b/core/src/main/java/org/apache/servicecomb/core/definition/OperationMeta.java
@@ -47,8 +47,6 @@ public class OperationMeta {
private final ResponsesMeta responsesMeta = new ResponsesMeta();
- private OperationConfig config;
-
private final VendorExtensions vendorExtensions = new VendorExtensions();
public OperationMeta init(SchemaMeta schemaMeta, SwaggerOperation
swaggerOperation) {
@@ -60,7 +58,6 @@ public class OperationMeta {
this.operationPath = swaggerOperation.getPath();
this.swaggerOperation = swaggerOperation.getOperation();
this.executor =
schemaMeta.getMicroserviceMeta().getScbEngine().getExecutorManager().findExecutor(this);
- this.config =
schemaMeta.getMicroserviceMeta().getMicroserviceVersionsMeta().getOrCreateOperationConfig(this);
this.responsesMeta.init(schemaMeta.getSwagger(),
swaggerOperation.getOperation());
return this;
@@ -75,7 +72,7 @@ public class OperationMeta {
}
public OperationConfig getConfig() {
- return config;
+ return
schemaMeta.getMicroserviceMeta().getMicroserviceVersionsMeta().getOrCreateOperationConfig(this);
}
public String getHttpMethod() {