From 5775800a5d243c2c4d17d0aef153a228bd295875 Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Thu, 11 Jan 2024 03:12:19 -0800 Subject: [PATCH] Added sendable conformance --- Sources/HostRouter/HostRoutesBuilder.swift | 4 ++-- Sources/HostRouter/HostRoutesGroup.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/HostRouter/HostRoutesBuilder.swift b/Sources/HostRouter/HostRoutesBuilder.swift index ee4e144..b1e8f02 100644 --- a/Sources/HostRouter/HostRoutesBuilder.swift +++ b/Sources/HostRouter/HostRoutesBuilder.swift @@ -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) { diff --git a/Sources/HostRouter/HostRoutesGroup.swift b/Sources/HostRouter/HostRoutesGroup.swift index 3e233c9..3a12e28 100644 --- a/Sources/HostRouter/HostRoutesGroup.swift +++ b/Sources/HostRouter/HostRoutesGroup.swift @@ -1,4 +1,4 @@ -struct HostRoutesGroup: TopLevelHostRoutesBuilder { +struct HostRoutesGroup: Sendable, TopLevelHostRoutesBuilder { /// Router to cascade to. let root: HostRoutesBuilder