marvzhang
2019-12-19 10:42:20 +08:00
parent b7f9fcaedd
commit 234db7196c
3 changed files with 31 additions and 10 deletions

View File

@@ -55,7 +55,7 @@ func GetCurrentNode() (Node, error) {
for {
// 如果错误次数超过10次
if errNum >= 10 {
panic("cannot get current node")
return node, errors.New("cannot get current node")
}
// 尝试获取节点