Skip to content

Commit bf92ba7

Browse files
committed
Add setter to deprecated peer property in ServerContext
1 parent 9fd57dc commit bf92ba7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/GRPCCore/Call/Server/ServerContext.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public struct ServerContext: Sendable {
3232
/// - "in-process:27182".
3333
@available(*, deprecated, renamed: "remotePeer")
3434
public var peer: String {
35-
remotePeer
35+
get { remotePeer }
36+
set { remotePeer = newValue }
3637
}
3738

3839
/// A description of the remote peer.

0 commit comments

Comments
 (0)