This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/master by this push:
new 41e5040b8 [#4054] make the operationConfig lazy to load (#4086)
41e5040b8 is described below
commit 41e5040b8f3c2c16454e11a7760c40a07ebb1289
Author: yanghao <[email protected]>
AuthorDate: Tue Dec 5 15:15:45 2023 +0800
[#4054] make the operationConfig lazy to load (#4086)
---
.../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 015096eb0..003daaffa 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() {