From 4286d6fdf7e5dd8bd71b9fa58b198316f5115439 Mon Sep 17 00:00:00 2001 From: Mohamed Awnallah Date: Wed, 10 Jul 2024 12:49:39 +0300 Subject: [PATCH] client/v3/watch.go: use fmt for metadata printing Signed-off-by: Mohamed Awnallah --- client/v3/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/v3/watch.go b/client/v3/watch.go index 14ddcb920e1..117c662b432 100644 --- a/client/v3/watch.go +++ b/client/v3/watch.go @@ -1037,7 +1037,7 @@ func (pr *progressRequest) toPB() *pb.WatchRequest { func streamKeyFromCtx(ctx context.Context) string { if md, ok := metadata.FromOutgoingContext(ctx); ok { - return fmt.Sprintf("%+v", md) + return fmt.Sprintf("%+v", map[string][]string(md)) } return "" }