This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/develop by this push:
     new 34f7dbc0c fix(router): fix wrong option configuration, add 
script-related options (#3221)
34f7dbc0c is described below

commit 34f7dbc0ccb39e00a5106da03b2d52a3c5c352f6
Author: yangpixi <[email protected]>
AuthorDate: Fri Feb 20 15:10:09 2026 +0800

    fix(router): fix wrong option configuration, add script-related options 
(#3221)
---
 cluster/router/options.go | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/cluster/router/options.go b/cluster/router/options.go
index 63a47bb30..3b3c1a5c4 100644
--- a/cluster/router/options.go
+++ b/cluster/router/options.go
@@ -61,13 +61,13 @@ func WithForce(force bool) Option {
 
 func WithRuntime(runtime bool) Option {
        return func(opts *Options) {
-               opts.Router.Force = &runtime
+               opts.Router.Runtime = &runtime
        }
 }
 
 func WithEnabled(enabled bool) Option {
        return func(opts *Options) {
-               opts.Router.Force = &enabled
+               opts.Router.Enabled = &enabled
        }
 }
 
@@ -93,5 +93,16 @@ func WithTags(tags []global.Tag) Option {
        return func(opts *Options) {
                opts.Router.Tags = tags
        }
+}
 
+func WithScript(script string) Option {
+       return func(opts *Options) {
+               opts.Router.Script = script
+       }
+}
+
+func WithScriptType(scriptType string) Option {
+       return func(opts *Options) {
+               opts.Router.ScriptType = scriptType
+       }
 }

Reply via email to