Snow-kal commented on code in PR #3171:
URL: https://github.com/apache/dubbo-go/pull/3171#discussion_r2711009668
##########
filter/generic/generalizer/map.go:
##########
@@ -84,6 +81,41 @@ func (g *MapGeneralizer) GetType(obj any) (typ string, err
error) {
return
}
+func getGenericIncludeClass() bool {
+ return true
+}
Review Comment:
已按照建议改正
```
func getGenericIncludeClass() bool {
cfgList := config.GetEnvInstance().Configuration()
for e := cfgList.Front(); e != nil; e = e.Next() {
conf, ok := e.Value.(*config.InmemoryConfiguration)
if !ok {
continue
}
if exist, val :=
conf.GetProperty(constant.GenericIncludeClassKey); exist {
parsed, err := strconv.ParseBool(val)
if err != nil {
logger.Warnf("generic.include.class value %q is
invalid, fallback to true", val)
return true
}
return parsed
}
}
return true
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]