update for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-01-29 15:16:03 +03:00
parent beaf54e102
commit 4d9270dd9b
5 changed files with 47 additions and 381 deletions

View File

@@ -3,7 +3,7 @@ package tcp
import (
"net"
"github.com/unistack-org/micro/v3/registry"
"github.com/unistack-org/micro/v3/register"
"github.com/unistack-org/micro/v3/server"
)
@@ -13,7 +13,7 @@ type Handler interface {
type tcpHandler struct {
opts server.HandlerOptions
eps []*registry.Endpoint
eps []*register.Endpoint
hd interface{}
maxMsgSize int
}
@@ -26,7 +26,7 @@ func (h *tcpHandler) Handler() interface{} {
return h.hd
}
func (h *tcpHandler) Endpoints() []*registry.Endpoint {
func (h *tcpHandler) Endpoints() []*register.Endpoint {
return h.eps
}