You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by vi...@apache.org on 2020/12/09 02:47:48 UTC
[dubbo-go] 01/01: #901 Optimize the memory usage.
This is an automated email from the ASF dual-hosted git repository.
victory pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
commit 29e6cffa9e6633600f6febecdba2b831a134abc6
Author: cvictory <sh...@gmail.com>
AuthorDate: Wed Dec 9 10:47:30 2020 +0800
#901 Optimize the memory usage.
---
common/url.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/url.go b/common/url.go
index b33b6d3..ec24626 100644
--- a/common/url.go
+++ b/common/url.go
@@ -640,7 +640,7 @@ func MergeUrl(serviceUrl *URL, referenceUrl *URL) *URL {
for key, value := range referenceUrl.GetParams() {
if v := mergedUrl.GetParam(key, ""); len(v) == 0 {
if len(value) > 0 {
- mergedUrl.SetParam(key, value[0])
+ params[key] = value
}
}
}