Skip to content

Commit

Permalink
Remove NIOLockedValueBox from EndpointPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis committed May 19, 2024
1 parent 3f9d6b3 commit f2751cd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Sources/Hummingbird/Server/RequestContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,10 @@ import Tracing

/// Endpoint path storage
public struct EndpointPath: Sendable {
public init() {
self._value = .init(nil)
}
public init() {}

/// Endpoint path
public var value: String? {
get { self._value.withLockedValue { $0 } }
nonmutating set { self._value.withLockedValue { $0 = newValue } }
}

private let _value: NIOLockedValueBox<String?>
public var value: String?
}

/// Request context values required by Hummingbird itself.
Expand Down

0 comments on commit f2751cd

Please sign in to comment.