Compare commits

..

1 Commits

Author SHA1 Message Date
ac5e6dffa0 create outgoing metadata automatic on request
Some checks failed
build / test (push) Failing after 1s
build / lint (push) Failing after 1s
codeql / analyze (go) (push) Failing after 0s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-12-04 11:32:23 +03:00

View File

@@ -295,6 +295,7 @@ func (g *Server) handler(srv interface{}, stream grpc.ServerStream) error {
// create new context // create new context
ctx = metadata.NewIncomingContext(ctx, md) ctx = metadata.NewIncomingContext(ctx, md)
ctx = metadata.NewOutgoingContext(ctx, metadata.New(0))
stream = &streamWrapper{ctx, stream} stream = &streamWrapper{ctx, stream}