ing
This commit is contained in:
parent
fa62560a98
commit
ba51f2800b
4
main.go
4
main.go
|
@ -25,7 +25,9 @@ func init() {
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
registry := cRPC.NewRegistry()
|
registry := cRPC.NewRegistry()
|
||||||
registry.RegisterService(new(rpc.DiscoveryService), "")
|
if err := registry.RegisterService(new(rpc.DiscoveryService), ""); nil != err {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
|
||||||
s := server.New(*sockFile, registry)
|
s := server.New(*sockFile, registry)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user