aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-08 15:51:39 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-08 15:51:39 -0700
commit0fd4727defda5f8bef106a1f3b59263886b9b6c6 (patch)
tree698c2bf1b6b31e6a652b7093b48d0fae81b11090 /src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
parente2e5c8189310841f7edd5ae8a51a616c9d93b309 (diff)
deprecated old API
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.m')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+ChannelArg.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
index 0e631fb3ad..d01d0c0d4f 100644
--- a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
+++ b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
@@ -18,6 +18,7 @@
#import "GRPCCall+ChannelArg.h"
+#import "private/GRPCChannel.h"
#import "private/GRPCHost.h"
#import <grpc/impl/codegen/compression_types.h>
@@ -31,11 +32,11 @@
+ (void)setResponseSizeLimit:(NSUInteger)limit forHost:(nonnull NSString *)host {
GRPCHost *hostConfig = [GRPCHost hostWithAddress:host];
- hostConfig.responseSizeLimitOverride = @(limit);
+ hostConfig.responseSizeLimitOverride = limit;
}
+ (void)closeOpenConnections {
- [GRPCHost flushChannelCache];
+ [GRPCChannel closeOpenConnections];
}
+ (void)setDefaultCompressMethod:(GRPCCompressAlgorithm)algorithm forhost:(nonnull NSString *)host {