mirror of
https://github.com/go-micro/go-micro.git
synced 2025-07-12 22:41:07 +02:00
remove unnecessary dependencies between plugins
remove unnecessary dependencies between plugins upgrade go-micro.dev/v4 to v4.2.1
This commit is contained in:
@ -7,12 +7,12 @@ import (
|
||||
|
||||
"github.com/google/uuid"
|
||||
"go-micro.dev/v4/broker"
|
||||
"github.com/asim/go-micro/plugins/registry/memory/v4"
|
||||
"go-micro.dev/v4/registry"
|
||||
)
|
||||
|
||||
func sub(be *testing.B, c int) {
|
||||
be.StopTimer()
|
||||
m := memory.NewRegistry()
|
||||
m := registry.NewMemoryRegistry()
|
||||
b := NewBroker(broker.Registry(m))
|
||||
topic := uuid.New().String()
|
||||
|
||||
@ -71,7 +71,7 @@ func sub(be *testing.B, c int) {
|
||||
|
||||
func pub(be *testing.B, c int) {
|
||||
be.StopTimer()
|
||||
m := memory.NewRegistry()
|
||||
m := registry.NewMemoryRegistry()
|
||||
b := NewBroker(broker.Registry(m))
|
||||
topic := uuid.New().String()
|
||||
|
||||
@ -140,7 +140,7 @@ func pub(be *testing.B, c int) {
|
||||
}
|
||||
|
||||
func TestBroker(t *testing.T) {
|
||||
m := memory.NewRegistry()
|
||||
m := registry.NewMemoryRegistry()
|
||||
b := NewBroker(broker.Registry(m))
|
||||
|
||||
if err := b.Init(); err != nil {
|
||||
@ -186,7 +186,7 @@ func TestBroker(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestConcurrentSubBroker(t *testing.T) {
|
||||
m := memory.NewRegistry()
|
||||
m := registry.NewMemoryRegistry()
|
||||
b := NewBroker(broker.Registry(m))
|
||||
|
||||
if err := b.Init(); err != nil {
|
||||
@ -243,7 +243,7 @@ func TestConcurrentSubBroker(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestConcurrentPubBroker(t *testing.T) {
|
||||
m := memory.NewRegistry()
|
||||
m := registry.NewMemoryRegistry()
|
||||
b := NewBroker(broker.Registry(m))
|
||||
|
||||
if err := b.Init(); err != nil {
|
||||
|
Reference in New Issue
Block a user