s00373198 commented on a change in pull request #6538:
URL: https://github.com/apache/skywalking/pull/6538#discussion_r592846180
##########
File path:
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/CoreModuleProvider.java
##########
@@ -315,6 +316,8 @@ public void start() throws ModuleStartException {
.registerRemote(gRPCServerInstance);
}
+
OAPNodeChecker.setROLE(CoreModuleConfig.Role.valueOf(moduleConfig.getRole()));
Review comment:
I think about L304, Did you mean create a new enum class to store
current server role?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]