chia7712 commented on code in PR #886:
URL: https://github.com/apache/yunikorn-core/pull/886#discussion_r1636793392


##########
pkg/webservice/handlers.go:
##########
@@ -83,6 +85,35 @@ func init() {
        allowedActiveStatusMsg = fmt.Sprintf("Only following active statuses 
are allowed: %s", strings.Join(activeStatuses, ","))
 
        streamingLimiter = NewStreamingLimiter()
+
+       configs.AddConfigMapCallback("rest-response-size", func() {
+               newSize := configs.DefaultRESTResponseSize
+               configMap := configs.GetConfigMap()
+               if value, ok := configMap[configs.CMRESTResponseSize]; ok {

Review Comment:
   How about reusing `common.GetConfigurationUint`?



-- 
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]

Reply via email to