Skip to content

Commit

Permalink
client/v3/watch.go: use fmt for metadata printing
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
  • Loading branch information
mohamedawnallah committed Jul 12, 2024
1 parent 301b124 commit b1fc94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/v3/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,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 ""
}

0 comments on commit b1fc94f

Please sign in to comment.