aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.h2
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.m2
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.m2
-rw-r--r--src/objective-c/tests/GRPCClientTests.m6
4 files changed, 6 insertions, 6 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.h b/src/objective-c/GRPCClient/GRPCCall.h
index 5f6afab08c..c8f3919a63 100644
--- a/src/objective-c/GRPCClient/GRPCCall.h
+++ b/src/objective-c/GRPCClient/GRPCCall.h
@@ -249,7 +249,7 @@ extern id const kGRPCTrailersKey;
/**
* Send a message to the server. Data are sent as raw bytes in gRPC message frames.
*/
-- (void)writeWithData:(NSData *)data;
+- (void)writeData:(NSData *)data;
/**
* Finish the RPC request and half-close the call. The server may still send messages and/or
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m
index 9cb4aa34c2..7fdc8fcac2 100644
--- a/src/objective-c/GRPCClient/GRPCCall.m
+++ b/src/objective-c/GRPCClient/GRPCCall.m
@@ -206,7 +206,7 @@ const char *kCFStreamVarName = "grpc_cfstream";
});
}
-- (void)writeWithData:(NSData *)data {
+- (void)writeData:(NSData *)data {
dispatch_async(_dispatchQueue, ^{
[self->_pipe writeValue:data];
});
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.m b/src/objective-c/ProtoRPC/ProtoRPC.m
index 34fd54a216..957d636534 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.m
+++ b/src/objective-c/ProtoRPC/ProtoRPC.m
@@ -120,7 +120,7 @@
dispatch_async(_dispatchQueue, ^{
if (_call) {
- [_call writeWithData:[message data]];
+ [_call writeData:[message data]];
}
});
}
diff --git a/src/objective-c/tests/GRPCClientTests.m b/src/objective-c/tests/GRPCClientTests.m
index bad22d30cb..db7265c712 100644
--- a/src/objective-c/tests/GRPCClientTests.m
+++ b/src/objective-c/tests/GRPCClientTests.m
@@ -332,7 +332,7 @@ static GRPCProtoMethod *kFullDuplexCallMethod;
callOptions:options];
[call start];
- [call writeWithData:[request data]];
+ [call writeData:[request data]];
[call finish];
[self waitForExpectationsWithTimeout:TEST_TIMEOUT handler:nil];
@@ -495,7 +495,7 @@ static GRPCProtoMethod *kFullDuplexCallMethod;
}
}]
callOptions:options];
- [call writeWithData:[NSData data]];
+ [call writeData:[NSData data]];
[call start];
[self waitForExpectationsWithTimeout:TEST_TIMEOUT handler:nil];
@@ -632,7 +632,7 @@ static GRPCProtoMethod *kFullDuplexCallMethod;
callOptions:options];
[call start];
- [call writeWithData:[request data]];
+ [call writeData:[request data]];
[call finish];
[self waitForExpectationsWithTimeout:TEST_TIMEOUT handler:nil];