overflow_discovery/server/server.go
crusader dc520fdb24 ing
2017-10-27 15:01:09 +09:00

17 lines
282 B
Go

package server
import (
"git.loafle.net/commons_go/rpc"
"git.loafle.net/commons_go/server"
)
func New(addr string, registry rpc.Registry) server.Server {
sh := NewServerHandler(addr, registry)
sh.workersChan = make(chan struct{}, 10)
s := server.NewServer(sh)
return s
}