diff --git a/bolt-boost/src/server.rs b/bolt-boost/src/server.rs index 332e24ef..0418073c 100644 --- a/bolt-boost/src/server.rs +++ b/bolt-boost/src/server.rs @@ -145,10 +145,10 @@ async fn submit_constraints( #[tracing::instrument(skip_all)] async fn delegate( State(state): State>, - Json(delegation): Json, + Json(delegations): Json>, ) -> Result { - info!(delegatee = %delegation.message.delegatee_pubkey, validator = %delegation.message.validator_pubkey, "Delegating signing rights"); - post_request(state, DELEGATE_PATH, &delegation).await?; + info!(count = %delegations.len(), "Delegating signing rights"); + post_request(state, DELEGATE_PATH, &delegations).await?; Ok(StatusCode::OK) } @@ -157,10 +157,10 @@ async fn delegate( #[tracing::instrument(skip_all)] async fn revoke( State(state): State>, - Json(revocation): Json, + Json(revocations): Json>, ) -> Result { - info!(delegatee = %revocation.message.delegatee_pubkey, validator = %revocation.message.validator_pubkey, "Revoking signing rights"); - post_request(state, REVOKE_PATH, &revocation).await?; + info!(count = %revocations.len(), "Revoking signing rights"); + post_request(state, REVOKE_PATH, &revocations).await?; Ok(StatusCode::OK) }