Explorar el Código

Add missing availability (#1936)

George Barnett hace 1 año
padre
commit
05e0f0cb26
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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>