Skip to content

Commit ca2303e

Browse files
authored
Add deprecation warnings (#113)
Motivation: gRPC Swift v2 has moved to a new repo, grpc-swift-2 and as a result this package has a new major version. That's not all that discoverable. Modifications: Deprecate commonly used high-level types with a link to a forums post explaining the move. Result: Users are notified about the move
1 parent 030b9aa commit ca2303e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Sources/GRPCNIOTransportCore/Client/HTTP2ClientTransport.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public import NIOCore
1919

2020
/// A namespace for the HTTP/2 client transport.
2121
@available(gRPCSwiftNIOTransport 1.0, *)
22+
@available(*, deprecated, message: "See https://forums.swift.org/t/80177")
2223
public enum HTTP2ClientTransport {}
2324

2425
@available(gRPCSwiftNIOTransport 1.0, *)

Sources/GRPCNIOTransportCore/Server/HTTP2ServerTransport.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ internal import NIOHTTP2
2020

2121
/// A namespace for the HTTP/2 server transport.
2222
@available(gRPCSwiftNIOTransport 1.0, *)
23+
@available(*, deprecated, message: "See https://forums.swift.org/t/80177")
2324
public enum HTTP2ServerTransport {}
2425

2526
@available(gRPCSwiftNIOTransport 1.0, *)

0 commit comments

Comments
 (0)