create outgoing metadata automatic on request

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-12-04 11:32:23 +03:00
parent 66756f74dd
commit 631ba07c75

View File

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