From 252d66ec67dc6866d41b4aea3f70b5ad00a9145c Mon Sep 17 00:00:00 2001 From: Serge Tupchii Date: Fri, 3 Nov 2023 17:35:30 +0200 Subject: [PATCH] fix(grpc_metadata): keep ctx values in the context returned from `append_to_outgoing_ctx/2` --- src/grpcbox_metadata.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grpcbox_metadata.erl b/src/grpcbox_metadata.erl index e244c7a..a380886 100644 --- a/src/grpcbox_metadata.erl +++ b/src/grpcbox_metadata.erl @@ -38,7 +38,7 @@ new_incoming_ctx(Map) -> ctx:with_value(md_incoming_key, new(Map)). append_to_outgoing_ctx(Ctx, Map) -> - ctx:with_value(md_outgoing_key, join([from_outgoing_ctx(Ctx), new(Map)])). + ctx:with_value(Ctx, md_outgoing_key, join([from_outgoing_ctx(Ctx), new(Map)])). -spec pairs([{key(), value()}]) -> t(). pairs(List) ->