Skip to content

Commit

Permalink
feat(core): integrate removeall of types/component
Browse files Browse the repository at this point in the history
  • Loading branch information
jochumdev committed Dec 22, 2022
1 parent 88fbc31 commit 0f40875
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions registry/mdns/mdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"go-micro.dev/v5/log"
"go-micro.dev/v5/registry"
"go-micro.dev/v5/types"
"go-micro.dev/v5/types/component"
)

type mdnsTxt struct {
Expand Down Expand Up @@ -132,7 +131,7 @@ func (m *RegistryMDNS) String() string {
}

// Type returns the component type.
func (m *RegistryMDNS) Type() component.Type {
func (m *RegistryMDNS) Type() string {
return registry.ComponentType
}

Expand Down
3 changes: 1 addition & 2 deletions registry/nats/nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"go-micro.dev/v5/log"
"go-micro.dev/v5/registry"
"go-micro.dev/v5/types"
"go-micro.dev/v5/types/component"
)

// This is here to make sure RegistryNATS implements registry.Registry.
Expand Down Expand Up @@ -104,7 +103,7 @@ func (n *RegistryNATS) String() string {
}

// Type returns the component type.
func (n *RegistryNATS) Type() component.Type {
func (n *RegistryNATS) Type() string {
return registry.ComponentType
}

Expand Down
3 changes: 1 addition & 2 deletions server/http/entrypoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"go-micro.dev/v5/log"
"go-micro.dev/v5/server"
"go-micro.dev/v5/types"
"go-micro.dev/v5/types/component"
"go-micro.dev/v5/util/addr"
mtls "go-micro.dev/v5/util/tls"

Expand Down Expand Up @@ -257,7 +256,7 @@ func (s *ServerHTTP) Name() string {
}

// Type returns the component type.
func (s *ServerHTTP) Type() component.Type {
func (s *ServerHTTP) Type() string {
return server.ComponentType
}

Expand Down

0 comments on commit 0f40875

Please sign in to comment.