Fix service registration with registry service

This commit is contained in:
Asim Aslam
2020-01-18 19:53:51 +00:00
parent 31e195bac7
commit 0a37767127
6 changed files with 13 additions and 13 deletions

View File

@@ -136,6 +136,9 @@ var (
DefaultRegisterCheck = func(context.Context) error { return nil }
DefaultRegisterInterval = time.Second * 30
DefaultRegisterTTL = time.Minute
// NewServer creates a new server
NewServer func(...Option) Server = newRpcServer
)
// DefaultOptions returns config options for the default service
@@ -151,11 +154,6 @@ func Init(opt ...Option) {
DefaultServer.Init(opt...)
}
// NewServer returns a new server with options passed in
func NewServer(opt ...Option) Server {
return newRpcServer(opt...)
}
// NewRouter returns a new router
func NewRouter() *router {
return newRpcRouter()