You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "AlexStocks (via GitHub)" <gi...@apache.org> on 2023/05/16 07:26:13 UTC

[GitHub] [dubbo-go] AlexStocks commented on a diff in pull request #2314: Try update value if node already exists

AlexStocks commented on code in PR #2314:
URL: https://github.com/apache/dubbo-go/pull/2314#discussion_r1194729514


##########
remoting/zookeeper/listener.go:
##########
@@ -344,8 +344,7 @@ func (l *ZkEventListener) listenDirEvent(conf *common.URL, zkRootPath string, li
 				failTimes = MaxFailTimes
 			}
 
-			err = perrors.Cause(err)
-			if !strings.Contains(err.Error(), "node does not exist") { // ignore if node not exist
+			if !perrors.Is(err, zk.ErrNoNode) { // ignore if node not exist

Review Comment:
   @chickenlj 这个地方我有异议,这个地方不需要修改啊,原来的没啥问题



-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org