From a1a59805342064ef9437ccd1f543dad1ee8be855 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sun, 3 Apr 2022 14:45:40 +0300 Subject: [PATCH] cleanup Signed-off-by: Vasiliy Tolstov --- grpc.go | 5 +---- request.go | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/grpc.go b/grpc.go index c2adf14..67827c7 100644 --- a/grpc.go +++ b/grpc.go @@ -55,7 +55,6 @@ type grpcServer struct { rpc *rServer opts server.Options sync.RWMutex - init bool started bool registered bool reflection bool @@ -166,8 +165,6 @@ func (g *grpcServer) configure(opts ...server.Option) error { return g.Start() } - g.init = true - return nil } @@ -587,7 +584,7 @@ func (g *grpcServer) Options() server.Options { } func (g *grpcServer) Init(opts ...server.Option) error { - if len(opts) == 0 && g.init { + if len(opts) == 0 { return nil } return g.configure(opts...) diff --git a/request.go b/request.go index 9e781a6..29cbeb4 100644 --- a/request.go +++ b/request.go @@ -31,7 +31,6 @@ type rpcMessage struct { header metadata.Metadata topic string contentType string - body []byte } func (r *rpcRequest) ContentType() string {