添加注释

This commit is contained in:
陈景阳
2019-08-24 15:11:52 +08:00
parent c1259f2e13
commit ce8fb86700

View File

@@ -124,6 +124,7 @@ func IsMaster() bool {
return viper.GetString("server.master") == Yes
}
// 所有调用IsMasterNode的方法都永远会在master节点执行所以GetCurrentNode方法返回永远是master节点
// 该ID的节点是否为主节点
func IsMasterNode(id string) bool {
curNode, _ := GetCurrentNode()