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)