Skip to content

Commit

Permalink
Make RequestID public (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Mar 20, 2024
1 parent c7e53ee commit f6d2891
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Hummingbird/Server/RequestID.swift
Expand Up @@ -15,14 +15,14 @@
import Atomics

/// Generate Unique ID for each request
package struct RequestID: CustomStringConvertible {
public struct RequestID: CustomStringConvertible {
let low: UInt64

package init() {
public init() {
self.low = Self.globalRequestID.loadThenWrappingIncrement(by: 1, ordering: .relaxed)
}

package var description: String {
public var description: String {
Self.high + self.formatAsHexWithLeadingZeros(self.low)
}

Expand Down

0 comments on commit f6d2891

Please sign in to comment.