Skip to content

Commit

Permalink
chore: clippy auth store
Browse files Browse the repository at this point in the history
  • Loading branch information
bsbds committed May 16, 2024
1 parent 61e6c74 commit 811d7dd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions crates/xline/src/storage/auth_store/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,11 @@ impl AuthStore {
self.create_permission_cache()?;
Ok(())
}

/// Gets the auth revision generator
pub(crate) fn revision_gen(&self) -> Arc<RevisionNumberGenerator> {
Arc::clone(&self.revision)
}
}

/// Get common name from tonic request
Expand All @@ -1166,13 +1171,6 @@ fn get_cn<T>(request: &tonic::Request<T>) -> Option<String> {
cert.subject_common_name()
}

impl AuthStore {
/// Gets the auth revision generator
pub(crate) fn revision_gen(&self) -> Arc<RevisionNumberGenerator> {
Arc::clone(&self.revision)
}
}

#[cfg(test)]
mod test {
use std::collections::HashMap;
Expand Down

0 comments on commit 811d7dd

Please sign in to comment.