xiaobaicai66695 commented on code in PR #3642:
URL: https://github.com/apache/dubbo-go/pull/3642#discussion_r3764108180


##########
client/options.go:
##########
@@ -644,26 +760,37 @@ func (cliOpts *ClientOptions) init(opts ...ClientOption) 
error {
 
 type ClientOption func(*ClientOptions)
 
+// WithClientNoCheck allows client references to initialize even when no 
provider is currently
+// available, so applications can start before their dependencies. Calls still 
fail until a
+// provider appears. Use it for independently deployed or temporarily optional 
dependencies;
+// WithCheck can restore fail-fast initialization for one mandatory reference.
 func WithClientNoCheck() ClientOption {
        return func(opts *ClientOptions) {
                opts.Consumer.Check = false
        }
 }
 
+// WithClientURL sends client references directly to the supplied URL instead 
of discovering
+// providers through a registry. Use it for tests or a client dedicated to one 
fixed endpoint;
+// it does not follow registry changes. A reference-level WithURL overrides 
this default.
 func WithClientURL(url string) ClientOption {
        return func(opts *ClientOptions) {
                opts.overallReference.URL = url
        }
 }
 
-// todo(DMwangnima): change Filter Option like Cluster and LoadBalance

Review Comment:
   done



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to