@@ -522,23 +522,22 @@ impl PyCallClient {
522
522
523
523
/// Ejects remote participants.
524
524
///
525
- /// :param List[str] participants : A list of IDs of remote participants to eject
525
+ /// :param List[str] ids : A list of IDs of remote participants to eject
526
526
/// :param Optional[func] completion: An optional completion callback with one parameter: (:ref:`CallClientError`)
527
- #[ pyo3( signature = ( participants , completion = None ) ) ]
527
+ #[ pyo3( signature = ( ids , completion = None ) ) ]
528
528
pub fn eject_remote_participants (
529
529
& self ,
530
- participants : PyObject ,
530
+ ids : PyObject ,
531
531
completion : Option < PyObject > ,
532
532
) -> PyResult < ( ) > {
533
533
// If we have already been released throw an exception.
534
534
let mut call_client = self . check_released ( ) ?;
535
535
536
- let participants : Vec < String > = Python :: with_gil ( |py| participants . extract ( py) . unwrap ( ) ) ;
536
+ let ids : Vec < String > = Python :: with_gil ( |py| ids . extract ( py) . unwrap ( ) ) ;
537
537
538
- let participants_string = serde_json:: to_string ( & participants ) . unwrap ( ) ;
538
+ let ids_string = serde_json:: to_string ( & ids ) . unwrap ( ) ;
539
539
540
- let participants_cstr =
541
- CString :: new ( participants_string) . expect ( "invalid participant IDs string" ) ;
540
+ let ids_cstr = CString :: new ( ids_string) . expect ( "invalid participant IDs string" ) ;
542
541
543
542
let request_id =
544
543
self . maybe_register_completion ( completion. map ( PyCallClientCompletion :: UnaryFn ) ) ;
@@ -547,7 +546,7 @@ impl PyCallClient {
547
546
daily_core_call_client_eject_remote_participants (
548
547
call_client. as_mut ( ) ,
549
548
request_id,
550
- participants_cstr . as_ptr ( ) ,
549
+ ids_cstr . as_ptr ( ) ,
551
550
) ;
552
551
}
553
552
0 commit comments