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

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


The following commit(s) were added to refs/heads/feat-adasvc by this push:
     new c7edac5  fix(imports): import adaptivesvc cluster and p2c loadbalance
c7edac5 is described below

commit c7edac5a9fd6ac5532313727fffa13dd1648a1ef
Author: XavierNiu <[email protected]>
AuthorDate: Fri Nov 26 17:32:15 2021 +0800

    fix(imports): import adaptivesvc cluster and p2c loadbalance
---
 cluster/cluster_impl/import.go | 1 +
 config/provider_config.go      | 2 ++
 imports/imports.go             | 2 ++
 3 files changed, 5 insertions(+)

diff --git a/cluster/cluster_impl/import.go b/cluster/cluster_impl/import.go
index 68908ab..8ba9749 100644
--- a/cluster/cluster_impl/import.go
+++ b/cluster/cluster_impl/import.go
@@ -21,6 +21,7 @@ package cluster_impl
 // This package may be DEPRECATED OR REMOVED in the future.
 
 import (
+       _ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/adaptivesvc"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/available"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/broadcast"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/failback"
diff --git a/config/provider_config.go b/config/provider_config.go
index 17efb3c..3e09a17 100644
--- a/config/provider_config.go
+++ b/config/provider_config.go
@@ -117,6 +117,8 @@ func (c *ProviderConfig) Init(rc *RootConfig) error {
        }
        // enable adaptive service verbose
        if c.AdaptiveServiceVerbose {
+               logger.Infof("adaptive service verbose is enabled, the current 
logging level is %s.",
+                       c.rootConfig.Logger.ZapConfig.Level)
                aslimiter.Verbose = true
        }
        return nil
diff --git a/imports/imports.go b/imports/imports.go
index ca7f6b4..7c40164 100644
--- a/imports/imports.go
+++ b/imports/imports.go
@@ -18,6 +18,7 @@
 package imports
 
 import (
+       _ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/adaptivesvc"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/available"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/broadcast"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/failback"
@@ -28,6 +29,7 @@ import (
        _ "dubbo.apache.org/dubbo-go/v3/cluster/cluster/zoneaware"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/consistenthashing"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/leastactive"
+       _ "dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/p2c"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/roundrobin"
        _ "dubbo.apache.org/dubbo-go/v3/cluster/router/v3router"

Reply via email to