From ba51f2800b8c6334756f0586bff7c7363c0c6123 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 2 Nov 2017 20:16:18 +0900 Subject: [PATCH] ing --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 0f3f780..b8729f4 100644 --- a/main.go +++ b/main.go @@ -25,7 +25,9 @@ func init() { func main() { registry := cRPC.NewRegistry() - registry.RegisterService(new(rpc.DiscoveryService), "") + if err := registry.RegisterService(new(rpc.DiscoveryService), ""); nil != err { + panic(err) + } s := server.New(*sockFile, registry)