@@ -222,7 +222,7 @@ pub async fn get_demo_data_from_ingestor(action: &str) -> Result<(), PostError>
222
222
223
223
// forward the role update request to all ingestors to keep them in sync
224
224
pub async fn sync_users_with_roles_with_ingestors (
225
- username : & str ,
225
+ userid : & str ,
226
226
role : & HashSet < String > ,
227
227
operation : & str ,
228
228
) -> Result < ( ) , RBACError > {
@@ -236,7 +236,7 @@ pub async fn sync_users_with_roles_with_ingestors(
236
236
RBACError :: SerdeError ( err)
237
237
} ) ?;
238
238
239
- let username = username . to_owned ( ) ;
239
+ let userid = userid . to_owned ( ) ;
240
240
241
241
let op = operation. to_string ( ) ;
242
242
@@ -245,7 +245,7 @@ pub async fn sync_users_with_roles_with_ingestors(
245
245
"{}{}/user/{}/role/sync/{}" ,
246
246
ingestor. domain_name,
247
247
base_path_without_preceding_slash( ) ,
248
- username ,
248
+ userid ,
249
249
op
250
250
) ;
251
251
@@ -282,15 +282,15 @@ pub async fn sync_users_with_roles_with_ingestors(
282
282
}
283
283
284
284
// forward the delete user request to all ingestors to keep them in sync
285
- pub async fn sync_user_deletion_with_ingestors ( username : & str ) -> Result < ( ) , RBACError > {
286
- let username = username . to_owned ( ) ;
285
+ pub async fn sync_user_deletion_with_ingestors ( userid : & str ) -> Result < ( ) , RBACError > {
286
+ let userid = userid . to_owned ( ) ;
287
287
288
288
for_each_live_ingestor ( move |ingestor| {
289
289
let url = format ! (
290
290
"{}{}/user/{}/sync" ,
291
291
ingestor. domain_name,
292
292
base_path_without_preceding_slash( ) ,
293
- username
293
+ userid
294
294
) ;
295
295
296
296
async move {
0 commit comments