diff --git a/src/controller/sync.rs b/src/controller/sync.rs index a17a378..377c0d8 100644 --- a/src/controller/sync.rs +++ b/src/controller/sync.rs @@ -8,7 +8,6 @@ use kafka::{ use ory_kratos_client::models::Identity; use serde_json::{json, Value}; use tonic::Request; -use tower::discover; use tracing::{error, log::info}; use crate::{ @@ -209,7 +208,7 @@ async fn send_to_iam( }; input.set_mode(mode); let request = Request::new(input); - iam_client.replace_permission(request).await?; + iam_client.add_permission(request).await?; Ok(()) }