ing
This commit is contained in:
parent
f1974f7197
commit
51bbdb4429
|
@ -1,14 +1,14 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
cr "git.loafle.net/commons_go/rpc"
|
||||
crc "git.loafle.net/commons_go/rpc/client"
|
||||
crpj "git.loafle.net/commons_go/rpc/protocol/json"
|
||||
crr "git.loafle.net/commons_go/rpc/registry"
|
||||
)
|
||||
|
||||
func NewClientHandler(registry cr.Registry) ClientHandler {
|
||||
func NewClientHandler(rpcInvoker crr.RPCInvoker) ClientHandler {
|
||||
ch := &ClientHandlers{}
|
||||
ch.RPCRegistry = registry
|
||||
ch.RPCInvoker = rpcInvoker
|
||||
ch.Codec = crpj.NewClientCodec()
|
||||
|
||||
return ch
|
||||
|
|
Loading…
Reference in New Issue
Block a user