cleanup #106

Merged
vtolstov merged 1 commits from cleanup into v3 2022-04-03 14:48:09 +03:00
2 changed files with 1 additions and 5 deletions
Showing only changes of commit a1a5980534 - Show all commits

View File

@ -55,7 +55,6 @@ type grpcServer struct {
rpc *rServer rpc *rServer
opts server.Options opts server.Options
sync.RWMutex sync.RWMutex
init bool
started bool started bool
registered bool registered bool
reflection bool reflection bool
@ -166,8 +165,6 @@ func (g *grpcServer) configure(opts ...server.Option) error {
return g.Start() return g.Start()
} }
g.init = true
return nil return nil
} }
@ -587,7 +584,7 @@ func (g *grpcServer) Options() server.Options {
} }
func (g *grpcServer) Init(opts ...server.Option) error { func (g *grpcServer) Init(opts ...server.Option) error {
if len(opts) == 0 && g.init { if len(opts) == 0 {
return nil return nil
} }
return g.configure(opts...) return g.configure(opts...)

View File

@ -31,7 +31,6 @@ type rpcMessage struct {
header metadata.Metadata header metadata.Metadata
topic string topic string
contentType string contentType string
body []byte
} }
func (r *rpcRequest) ContentType() string { func (r *rpcRequest) ContentType() string {