summaryrefslogtreecommitdiff
path: root/edgemesh/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'edgemesh/pkg')
-rw-r--r--edgemesh/pkg/cache/cache.go2
-rw-r--r--edgemesh/pkg/listener/listener_test.go2
-rw-r--r--edgemesh/pkg/plugin/plugin.go4
-rw-r--r--edgemesh/pkg/plugin/registry/registry.go2
4 files changed, 5 insertions, 5 deletions
diff --git a/edgemesh/pkg/cache/cache.go b/edgemesh/pkg/cache/cache.go
index 63c31f6cb..4c110c610 100644
--- a/edgemesh/pkg/cache/cache.go
+++ b/edgemesh/pkg/cache/cache.go
@@ -1,6 +1,6 @@
package cache
-import "github.com/hashicorp/golang-lru"
+import lru "github.com/hashicorp/golang-lru"
const DefaultCapacity = 20
diff --git a/edgemesh/pkg/listener/listener_test.go b/edgemesh/pkg/listener/listener_test.go
index f8a070781..6197e26c6 100644
--- a/edgemesh/pkg/listener/listener_test.go
+++ b/edgemesh/pkg/listener/listener_test.go
@@ -3,7 +3,7 @@ package listener
import (
"testing"
- "github.com/hashicorp/golang-lru"
+ lru "github.com/hashicorp/golang-lru"
v1 "k8s.io/api/core/v1"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
diff --git a/edgemesh/pkg/plugin/plugin.go b/edgemesh/pkg/plugin/plugin.go
index 9c6dd8c29..ee73e57e5 100644
--- a/edgemesh/pkg/plugin/plugin.go
+++ b/edgemesh/pkg/plugin/plugin.go
@@ -1,16 +1,16 @@
package plugin
import (
- "k8s.io/klog/v2"
-
"github.com/go-chassis/go-archaius"
"github.com/go-chassis/go-chassis/control"
"github.com/go-chassis/go-chassis/core/config"
"github.com/go-chassis/go-chassis/core/config/model"
"github.com/go-chassis/go-chassis/core/loadbalancer"
"github.com/go-chassis/go-chassis/core/registry"
+ "k8s.io/klog/v2"
meshConfig "github.com/kubeedge/kubeedge/edgemesh/pkg/config"
+
// Register panel to aviod panic error
_ "github.com/kubeedge/kubeedge/edgemesh/pkg/plugin/panel"
meshRegistry "github.com/kubeedge/kubeedge/edgemesh/pkg/plugin/registry"
diff --git a/edgemesh/pkg/plugin/registry/registry.go b/edgemesh/pkg/plugin/registry/registry.go
index 59676df43..e061f7277 100644
--- a/edgemesh/pkg/plugin/registry/registry.go
+++ b/edgemesh/pkg/plugin/registry/registry.go
@@ -6,7 +6,7 @@ import (
"strings"
"github.com/go-chassis/go-chassis/core/registry"
- "github.com/go-chassis/go-chassis/pkg/util/tags"
+ utiltags "github.com/go-chassis/go-chassis/pkg/util/tags"
v1 "k8s.io/api/core/v1"
"k8s.io/klog/v2"