1
0
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:
Johnson C
2021-10-23 16:20:42 +08:00
committed by GitHub
parent f96b48dad9
commit af3cfa0a4c
206 changed files with 745 additions and 676 deletions

View File

@ -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 {