From 4641749f70b8c783cc7a778c5602bbd1cf72b6e1 Mon Sep 17 00:00:00 2001 From: Fabian Fett Date: Thu, 8 Jul 2021 17:26:17 +0200 Subject: [PATCH] Code review --- .../HTTPConnectionPool+Waiter.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Waiter.swift b/Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Waiter.swift index 07f917a2a..e5d5f7bf4 100644 --- a/Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Waiter.swift +++ b/Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Waiter.swift @@ -15,17 +15,17 @@ import NIO extension HTTPConnectionPool { - struct Waiter { - struct ID: Hashable { - private let objectIdentifier: ObjectIdentifier + struct RequestID: Hashable { + private let objectIdentifier: ObjectIdentifier - init(_ request: HTTPScheduledRequest) { - self.objectIdentifier = ObjectIdentifier(request) - } + init(_ request: HTTPScheduledRequest) { + self.objectIdentifier = ObjectIdentifier(request) } + } - var id: ID { - ID(self.request) + struct Waiter { + var requestID: RequestID { + RequestID(self.request) } var request: HTTPScheduledRequest {