Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/GRPCCore/Metadata.swift
Original file line number Diff line number Diff line change
Expand Up @@ -494,15 +494,15 @@ extension Metadata.Value: ExpressibleByArrayLiteral {

extension Metadata: CustomStringConvertible {
public var description: String {
String(describing: self.map({ ($0.key, $0.value) }))
String(describing: self.map({ ($0.key.description, $0.value.description) }))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test to verify the description is as we'd expect for a single Metadata.Value and for a Metadata?

}
}

extension Metadata.Value: CustomStringConvertible {
public var description: String {
switch self {
case .string(let stringValue):
return String(describing: stringValue)
return stringValue
case .binary(let binaryValue):
return String(describing: binaryValue)
}
Expand Down
Loading