This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
The following commit(s) were added to refs/heads/main by this push:
new 95907483 update timeout sample (#850)
95907483 is described below
commit 959074831fed6d21d8cfaeb5cc99fea8fd1dfeab
Author: marsevilspirit <[email protected]>
AuthorDate: Mon Jun 2 11:46:41 2025 +0800
update timeout sample (#850)
---
timeout/go-client/cmd/client.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/timeout/go-client/cmd/client.go b/timeout/go-client/cmd/client.go
index 8aa3df85..303e7126 100644
--- a/timeout/go-client/cmd/client.go
+++ b/timeout/go-client/cmd/client.go
@@ -29,7 +29,8 @@ import (
func main() {
cli, err := client.NewClient(
- client.WithClientURL("tri://127.0.0.1:20000"),
+ client.WithClientURL("127.0.0.1:20000"),
+ client.WithClientProtocolTriple(),
client.WithClientRequestTimeout(3*time.Second),
)
if err != nil {