DMwangnima commented on issue #2495: URL: https://github.com/apache/dubbo-go/issues/2495#issuecomment-1803848690
The ideal way is retrieve information from ```URL``` and use it to get mapping Service from ```config.GetProviderConfig().Services```. But ```URL``` does not store that key. In this sample, ```config.GetProviderConfig().Services``` would be like this: <img width="433" alt="image" src="https://github.com/apache/dubbo-go/assets/33331974/f72c6d7b-755a-4b70-8ba9-ba3b276b21a6"> Since we could not modify the format of key, there would be some workarounds and solutions: 1. Checkout Interface during iteration: It is inefficiency but we can do in this way temporarily. 2. Add key information in ```URL.attributes``` Attributes would not be transferred outside the service so that it is okay. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
