Skip to content

Commit

Permalink
Make serviceContext public
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 18, 2023
1 parent 0f5f9d9 commit 416eaba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Hummingbird/Server/RequestContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public protocol HBRequestContext: Sendable {

extension HBRequestContext {
/// default service context
var serviceContext: ServiceContext { .topLevel }
public var serviceContext: ServiceContext { .topLevel }
/// Request ID, extracted from Logger
var id: String { self.logger[metadataKey: "hb_id"]!.description }
public var id: String { self.logger[metadataKey: "hb_id"]!.description }
}

/// Protocol for request context that stores the remote address of connected client
Expand Down

0 comments on commit 416eaba

Please sign in to comment.