Skip to content

Commit

Permalink
Changes from documentation update (#399)
Browse files Browse the repository at this point in the history
* Minor typo

* Job doc fixes

* ServerChildChannel
  • Loading branch information
adam-fowler authored Mar 14, 2024
1 parent da43476 commit dd36634
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/HummingbirdCore/Error/HTTPError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import HTTPTypes
import NIOCore

/// Default HTTP error. Provides an HTTP status and a message is so desired
/// Default HTTP error. Provides an HTTP status and a message
public struct HTTPError: Error, HTTPResponseError, Sendable {
/// status code for the error
public var status: HTTPResponse.Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import NIOCore
/// Build Channel Setup that takes an HTTP responder
///
/// Used when building an ``Hummingbird/Application``. It delays the building
/// of the ``ChildChannel`` until the HTTP responder has been built.
/// of the ``ServerChildChannel`` until the HTTP responder has been built.
public struct HTTPChannelBuilder<ChildChannel: ServerChildChannel>: Sendable {
/// build child channel from HTTP responder
public let build: @Sendable (@escaping HTTPChannelHandler.Responder) throws -> ChildChannel
Expand Down
2 changes: 1 addition & 1 deletion Sources/HummingbirdJobs/Job.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//

/// Protocol for a Job
public protocol Job: Sendable {
protocol Job: Sendable {
/// Parameters job requries
associatedtype Parameters: Codable & Sendable
/// Job Type identifier
Expand Down
4 changes: 2 additions & 2 deletions Sources/HummingbirdJobs/JobQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import ServiceLifecycle
///
/// Wrapper type to bring together a job queue implementation and a job queue
/// handler. Before you can push jobs onto a queue you should register it
/// with the queue via either ``JobQueue.registerJob(id:maxRetryCount:execute:)`` or
/// ``JobQueue.registerJob(_:)``.
/// with the queue via either ``registerJob(id:maxRetryCount:execute:)`` or
/// ``registerJob(_:)``.
public struct JobQueue<Queue: JobQueueDriver>: Service {
/// underlying driver for queue
public let queue: Queue
Expand Down

0 comments on commit dd36634

Please sign in to comment.