Skip to content

Commit

Permalink
Added sendable conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitribouniol committed Jan 11, 2024
1 parent 2ec208c commit 5775800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/HostRouter/HostRoutesBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Vapor

public protocol HostRoutesBuilder: RoutesBuilder {
public protocol HostRoutesBuilder: Sendable, RoutesBuilder {
func add(_ route: HostRoute)
}

public protocol TopLevelHostRoutesBuilder: HostRoutesBuilder {}
public protocol TopLevelHostRoutesBuilder: Sendable, HostRoutesBuilder {}

extension HostRoutesBuilder {
public func add(_ route: Route) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/HostRouter/HostRoutesGroup.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
struct HostRoutesGroup: TopLevelHostRoutesBuilder {
struct HostRoutesGroup: Sendable, TopLevelHostRoutesBuilder {
/// Router to cascade to.
let root: HostRoutesBuilder

Expand Down

0 comments on commit 5775800

Please sign in to comment.