5 Star 6 Fork 5

iot-kubeedge / kubeedge-kubeedge

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
load.go 639 Bytes
一键复制 编辑 原始数据 按行查看 历史
Siddharth Bhadri 提交于 2019-05-09 20:27 . fix DeviceController config keys
package config
import (
"github.com/kubeedge/beehive/pkg/common/config"
"github.com/kubeedge/beehive/pkg/common/log"
"github.com/kubeedge/kubeedge/cloud/pkg/devicecontroller/constants"
)
// UpdateDeviceStatusWorkers is the count of goroutines of update device status
var UpdateDeviceStatusWorkers int
func init() {
if psw, err := config.CONFIG.GetValue("devicecontroller.load.update-device-status-workers").ToInt(); err != nil {
UpdateDeviceStatusWorkers = constants.DefaultUpdateDeviceStatusWorkers
} else {
UpdateDeviceStatusWorkers = psw
}
log.LOGGER.Infof("Update device status workers: %d", UpdateDeviceStatusWorkers)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/iot-kubeedge/kubeedge-kubeedge.git
git@gitee.com:iot-kubeedge/kubeedge-kubeedge.git
iot-kubeedge
kubeedge-kubeedge
kubeedge-kubeedge
v1.0.0

搜索帮助

344bd9b3 5694891 D2dac590 5694891