project init

This commit is contained in:
geek 2018-04-06 21:57:41 +09:00
parent 24d5d01437
commit 215ea27cda

View File

@ -12,7 +12,7 @@ import (
type RPCServlet interface { type RPCServlet interface {
cssw.Servlet cssw.Servlet
} }
type RPCServlets struct { type RPCServlets struct {
cssw.Servlets cssw.Servlets
@ -42,7 +42,7 @@ func (s *RPCServlets) Handle(
}() }()
sc := crpj.NewServerCodec() sc := crpj.NewServerCodec()
grpcCTX := context.Background()
for { for {
select { select {
@ -55,6 +55,7 @@ func (s *RPCServlets) Handle(
m := src.Method() m := src.Method()
p,_ := src.Params() p,_ := src.Params()
grpcCTX := context.Background()
r, err := ogeg.Exec(grpcCTX,m, p) r, err := ogeg.Exec(grpcCTX,m, p)