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 <[email protected]>
  • Loading branch information
mohamedawnallah committed Jul 10, 2024
1 parent 4d9dceb commit 4286d6f
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 @@ -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 ""
}

0 comments on commit 4286d6f

Please sign in to comment.