Browse Source

Add missing availability (#1936)

George Barnett 1 year ago
parent
commit
05e0f0cb26
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Tests/GRPCHTTP2TransportTests/ControlService.swift

+ 2 - 0
Tests/GRPCHTTP2TransportTests/ControlService.swift

@@ -18,6 +18,7 @@ import GRPCCore
 
 import struct Foundation.Data
 
+@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
 struct ControlService: ControlStreamingServiceProtocol {
   func unary(
     request: ServerRequest.Stream<Control.Method.Unary.Input>
@@ -44,6 +45,7 @@ struct ControlService: ControlStreamingServiceProtocol {
   }
 }
 
+@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
 extension ControlService {
   private func handle(
     request: ServerRequest.Stream<ControlInput>