mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-18 04:28:40 +00:00
perf[tank]:Optimize protocol configuration
This commit is contained in:
@@ -206,9 +206,8 @@ public class ProtocolAnalysis {
|
||||
for (Class<?> clazz : packetClazzList) {
|
||||
var protocolId = ProtocolManager.protocolId(clazz);
|
||||
var registration = parseProtocolRegistration(clazz, module);
|
||||
if (!clazz.isAnnotationPresent(NotEnhance.class)) {
|
||||
enhanceList.add(registration);
|
||||
} else if (protocolDefinitionMap.getOrDefault(clazz.getName(), true)) {
|
||||
boolean isEnhance = protocolDefinitionMap.getOrDefault(clazz.getName(), true);
|
||||
if (isEnhance && !clazz.isAnnotationPresent(NotEnhance.class)) {
|
||||
enhanceList.add(registration);
|
||||
}
|
||||
// 注册协议
|
||||
|
||||
Reference in New Issue
Block a user