Skip to main content

report_conflict

Function report_conflict 

Source
async fn report_conflict(
    __arg0: State<Arc<AppState>>,
    __arg1: ConnectInfo<SocketAddr>,
    headers: HeaderMap,
    body: Bytes,
) -> Result<Response, AppError>
Expand description

POST /report/conflict: no auth, since users without a key hit conflicts too.

The rate is checked before the body is parsed, so a flood costs a map lookup; parsing by hand gives a malformed body an ApiError like any other failure, and success is an empty 202 that echoes nothing.