pbacsko commented on code in PR #446:
URL: https://github.com/apache/yunikorn-core/pull/446#discussion_r1019562989
##########
pkg/common/configs/configs.go:
##########
@@ -53,3 +52,51 @@ func (ctx *SchedulerConfigContext) Get(policyGroup string)
*SchedulerConfig {
defer ctx.lock.RUnlock()
return ctx.configs[policyGroup]
}
+
+func AddConfigMapCallback(id string, callback func()) {
+ configMapLock.Lock()
+ defer configMapLock.Unlock()
+ configMapCallbacks[id] = callback
+}
+
+func RemoveConfigMapCallback(id string) {
+ configMapLock.Lock()
+ defer configMapLock.Unlock()
+ delete(configMapCallbacks, id)
+}
Review Comment:
2 things:
* Comments are missing
* When are these functions called? I can see only one reference from the
unit test.
--
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]