This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2b15cb059 Fix issue 2699 (#2778)
2b15cb059 is described below

commit 2b15cb0598a5752e220e408297a029ffa11fdc83
Author: LQyt2012 <[email protected]>
AuthorDate: Thu Feb 20 14:01:08 2025 +0800

    Fix issue 2699 (#2778)
    
    The rc.id is always nil because it is never assigned.
---
 config/reference_config.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/reference_config.go b/config/reference_config.go
index c801afef8..7add5f28d 100644
--- a/config/reference_config.go
+++ b/config/reference_config.go
@@ -378,7 +378,7 @@ func (rc *ReferenceConfig) getURLMap() url.Values {
 
 // GenericLoad ...
 func (rc *ReferenceConfig) GenericLoad(id string) {
-       genericService := generic.NewGenericService(rc.id)
+       genericService := generic.NewGenericService(id)
        SetConsumerService(genericService)
        rc.id = id
        rc.Refer(genericService)

Reply via email to