Skip to content

Commit bbc6a32

Browse files
committed
set default dubbgo regsity type
1 parent 6fe338f commit bbc6a32

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

pixiu/pkg/client/dubbo/dubbo.go

+10-7
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ const (
6969
const (
7070
defaultDubboProtocol = "zookeeper"
7171

72+
defaultDubbogoRegistryType = "interface"
73+
7274
traceNameDubbogoClient = "dubbogo-client"
7375
spanNameDubbogoClient = "DUBBOGO CLIENT"
7476

@@ -142,13 +144,14 @@ func (dc *Client) Apply() error {
142144
v.Protocol = defaultDubboProtocol
143145
}
144146
rootConfigBuilder.AddRegistry(k, &dg.RegistryConfig{
145-
Protocol: v.Protocol,
146-
Address: v.Address,
147-
Timeout: v.Timeout,
148-
Username: v.Username,
149-
Password: v.Password,
150-
Namespace: v.Namespace,
151-
Group: v.Group,
147+
Protocol: v.Protocol,
148+
Address: v.Address,
149+
Timeout: v.Timeout,
150+
Username: v.Username,
151+
Password: v.Password,
152+
Namespace: v.Namespace,
153+
Group: v.Group,
154+
RegistryType: defaultDubbogoRegistryType,
152155
})
153156
}
154157
}

0 commit comments

Comments
 (0)