ing
This commit is contained in:
parent
d47b62438a
commit
a1f55549ac
5
main.go
5
main.go
|
@ -14,7 +14,10 @@ func main() {
|
|||
registry := cRPC.NewRegistry()
|
||||
registry.RegisterService(new(rpc.DiscoveryService), "")
|
||||
|
||||
c := client.New("/tmp/discovery.sock", registry)
|
||||
ch := client.NewClientHandler(registry)
|
||||
sb := client.NewSocketBuilder("/tmp/discovery.sock")
|
||||
c := client.New(ch, sb)
|
||||
|
||||
if err := c.Connect(); nil != err {
|
||||
fmt.Printf("%v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user