Skip to content

Commit

Permalink
Don't bother with leading zeros for high value in request id
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Dec 29, 2023
1 parent 1cafa1d commit 3ddd342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Hummingbird/Server/RequestID.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct RequestID: CustomStringConvertible {
}

var description: String {
self.formatAsHexWithLeadingZeros(self.high) + self.formatAsHexWithLeadingZeros(self.low)
String(self.high, radix: 16) + self.formatAsHexWithLeadingZeros(self.low)
}

func formatAsHexWithLeadingZeros(_ value: UInt64) -> String {
Expand Down

0 comments on commit 3ddd342

Please sign in to comment.