Skip to content
Snippets Groups Projects
Commit 90d6f6f4 authored by Patrick's avatar Patrick
Browse files

fix import

parent 426f36fc
No related branches found
No related tags found
No related merge requests found
......@@ -17,10 +17,13 @@
package dispatcher
import (
"reflect"
)
import (
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/common/observer"
"reflect"
)
func init() {
......
......@@ -19,6 +19,9 @@ package event
import (
"fmt"
)
import (
"github.com/apache/dubbo-go/common/observer"
)
......
......@@ -17,7 +17,9 @@
package observer
import "github.com/prometheus/common/log"
import (
"github.com/apache/dubbo-go/common/logger"
)
var globalEventDispatcher EventDispatcher
......@@ -45,7 +47,7 @@ func SetAndInitGlobalDispatcher(name string) {
name = "direct"
}
if globalEventDispatcher != nil {
log.Warnf("EventDispatcher already init. It will be replaced")
logger.Warnf("EventDispatcher already init. It will be replaced")
}
if dispatchers[name] == nil {
panic("EventDispatcher for " + name + " is not existing, make sure you have import the package.")
......@@ -54,7 +56,7 @@ func SetAndInitGlobalDispatcher(name string) {
globalEventDispatcher.AddEventListeners(eventListeners)
}
// GetGlobalDispatcher by name
// GetGlobalDispatcher
func GetGlobalDispatcher() EventDispatcher {
return globalEventDispatcher
}
......@@ -18,10 +18,13 @@
package observer
import (
gxsort "github.com/dubbogo/gost/sort"
"reflect"
)
import (
gxsort "github.com/dubbogo/gost/sort"
)
// All eventListeners
var eventListeners []EventListener
......
......@@ -18,11 +18,14 @@
package observer
import (
"github.com/stretchr/testify/assert"
"reflect"
"testing"
)
import (
"github.com/stretchr/testify/assert"
)
func TestListenable(t *testing.T) {
el := &TestEventListener{}
b := &BaseListenable{}
......
......@@ -17,10 +17,13 @@
package listener
import (
"reflect"
)
import (
"github.com/apache/dubbo-go/common/observer"
"github.com/apache/dubbo-go/common/observer/event"
"reflect"
)
func init() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment