From 3e71cf50f54dc4ebc79d41f336e3ce61c648f2c5 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 --- clientv3/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientv3/watch.go b/clientv3/watch.go index d317010e2..98ec9a6af 100644 --- a/clientv3/watch.go +++ b/clientv3/watch.go @@ -1043,7 +1043,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 "" }