client/{grpc,rpc}: fix previous breaking change with CallFunc (router.Route vs registry.Node) (#1781)
This commit is contained in:
@@ -3,11 +3,11 @@ package client
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/micro/go-micro/v2/router"
|
||||
"github.com/micro/go-micro/v2/registry"
|
||||
)
|
||||
|
||||
// CallFunc represents the individual call func
|
||||
type CallFunc func(ctx context.Context, route *router.Route, req Request, rsp interface{}, opts CallOptions) error
|
||||
type CallFunc func(ctx context.Context, node *registry.Node, req Request, rsp interface{}, opts CallOptions) error
|
||||
|
||||
// CallWrapper is a low level wrapper for the CallFunc
|
||||
type CallWrapper func(CallFunc) CallFunc
|
||||
|
||||
Reference in New Issue
Block a user