@@ -35,7 +35,8 @@ export interface UnaryCallback<ResponseType> {
3535export interface CallOptions {
3636 deadline ?: Deadline ;
3737 host ?: string ;
38- parent ?: Call ;
38+ /* There should be a parent option here that will accept a server call,
39+ * but the server is not yet implemented so it makes no sense to have it */
3940 propagate_flags ?: number ;
4041 credentials ?: CallCredentials ;
4142}
@@ -188,8 +189,7 @@ export class Client {
188189 this . checkOptionalUnaryResponseArguments < ResponseType > (
189190 metadata , options , callback ) ) ;
190191 const call : Call = this [ kChannel ] . createCall (
191- method , options . deadline , options . host , options . parent ,
192- options . propagate_flags ) ;
192+ method , options . deadline , options . host , null , options . propagate_flags ) ;
193193 if ( options . credentials ) {
194194 call . setCredentials ( options . credentials ) ;
195195 }
@@ -230,8 +230,7 @@ export class Client {
230230 this . checkOptionalUnaryResponseArguments < ResponseType > (
231231 metadata , options , callback ) ) ;
232232 const call : Call = this [ kChannel ] . createCall (
233- method , options . deadline , options . host , options . parent ,
234- options . propagate_flags ) ;
233+ method , options . deadline , options . host , null , options . propagate_flags ) ;
235234 if ( options . credentials ) {
236235 call . setCredentials ( options . credentials ) ;
237236 }
@@ -279,8 +278,7 @@ export class Client {
279278 options ?: CallOptions ) : ClientReadableStream < ResponseType > {
280279 ( { metadata, options} = this . checkMetadataAndOptions ( metadata , options ) ) ;
281280 const call : Call = this [ kChannel ] . createCall (
282- method , options . deadline , options . host , options . parent ,
283- options . propagate_flags ) ;
281+ method , options . deadline , options . host , null , options . propagate_flags ) ;
284282 if ( options . credentials ) {
285283 call . setCredentials ( options . credentials ) ;
286284 }
@@ -307,8 +305,7 @@ export class Client {
307305 options ?: CallOptions ) : ClientDuplexStream < RequestType , ResponseType > {
308306 ( { metadata, options} = this . checkMetadataAndOptions ( metadata , options ) ) ;
309307 const call : Call = this [ kChannel ] . createCall (
310- method , options . deadline , options . host , options . parent ,
311- options . propagate_flags ) ;
308+ method , options . deadline , options . host , null , options . propagate_flags ) ;
312309 if ( options . credentials ) {
313310 call . setCredentials ( options . credentials ) ;
314311 }
0 commit comments