Merge branch 'feature-triple' of https://github.com/apache/dubbo-go into feature-triple
diff --git a/common/url.go b/common/url.go
index f00cf66..e985433 100644
--- a/common/url.go
+++ b/common/url.go
@@ -818,6 +818,14 @@
mergedURL.Methods[i] = method
}
}
+
+ // merge attributes
+ if mergedURL.attributes == nil {
+ mergedURL.attributes = make(map[string]interface{}, len(referenceURL.attributes))
+ }
+ for attrK, attrV := range referenceURL.attributes {
+ mergedURL.attributes[attrK] = attrV
+ }
// In this way, we will raise some performance.
mergedURL.ReplaceParams(params)
return mergedURL