clang-format

pull/16190/head
Muxi Yan 6 years ago
parent cc58524994
commit 26108e1106
  1. 4
      src/objective-c/GRPCClient/GRPCCall.h
  2. 2
      src/objective-c/GRPCClient/private/GRPCChannelPool.m
  3. 2
      src/objective-c/GRPCClient/private/GRPCHost.m
  4. 4
      src/objective-c/ProtoRPC/ProtoRPC.m

@ -355,7 +355,9 @@ NS_ASSUME_NONNULL_END
/**
* The following methods are deprecated.
*/
+ (void)setCallSafety:(GRPCCallSafety)callSafety host:(NSString * _Null_unspecified)host path:(NSString * _Null_unspecified)path;
+ (void)setCallSafety:(GRPCCallSafety)callSafety
host:(NSString *_Null_unspecified)host
path:(NSString *_Null_unspecified)path;
@property(null_unspecified, atomic, copy, readwrite) NSString *serverName;
@property NSTimeInterval timeout;
- (void)setResponseDispatchQueue:(dispatch_queue_t _Null_unspecified)queue;

@ -18,6 +18,7 @@
#import <Foundation/Foundation.h>
#import "../internal/GRPCCallOptions+internal.h"
#import "GRPCChannel.h"
#import "GRPCChannelFactory.h"
#import "GRPCChannelPool.h"
@ -26,7 +27,6 @@
#import "GRPCInsecureChannelFactory.h"
#import "GRPCSecureChannelFactory.h"
#import "version.h"
#import "../internal/GRPCCallOptions+internal.h"
#import <GRPCClient/GRPCCall+Cronet.h>
#include <grpc/support/log.h>

@ -25,6 +25,7 @@
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
#import "../internal/GRPCCallOptions+internal.h"
#import "GRPCChannelFactory.h"
#import "GRPCCompletionQueue.h"
#import "GRPCConnectivityMonitor.h"
@ -32,7 +33,6 @@
#import "GRPCSecureChannelFactory.h"
#import "NSDictionary+GRPC.h"
#import "version.h"
#import "../internal/GRPCCallOptions+internal.h"
NS_ASSUME_NONNULL_BEGIN

@ -190,7 +190,9 @@ static NSError *ErrorForBadProto(id proto, Class expectedClass, NSError *parsing
}
} else {
if ([self->_handler respondsToSelector:@selector(closedWithTrailingMetadata:error:)]) {
[self->_handler closedWithTrailingMetadata:nil error:ErrorForBadProto(message, _responseClass, error)];
[self->_handler
closedWithTrailingMetadata:nil
error:ErrorForBadProto(message, _responseClass, error)];
}
self->_handler = nil;
[self->_call cancel];

Loading…
Cancel
Save