Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add a cache around server ACL checking #16360

Merged
merged 13 commits into from
Sep 26, 2023
Prev Previous commit
Next Next commit
rustfmt
  • Loading branch information
clokep committed Sep 21, 2023
commit 609cbe034915466a9752a679c2aa0b811ee2beca
8 changes: 5 additions & 3 deletions rust/src/acl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@

//! An implementation of Matrix server ACL rules.

use crate::push::utils::{glob_to_regex, GlobMatchType};
use std::net::Ipv4Addr;
use std::str::FromStr;

use anyhow::Error;
use pyo3::prelude::*;
use regex::Regex;
use std::net::Ipv4Addr;
use std::str::FromStr;

use crate::push::utils::{glob_to_regex, GlobMatchType};

/// Called when registering modules with python.
pub fn register_module(py: Python<'_>, m: &PyModule) -> PyResult<()> {
Expand Down