Skip to content

Commit

Permalink
clean up dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
shopifyski committed Mar 29, 2024
1 parent 6aba6e5 commit 1f2de7e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libsql-server/src/auth/parsers.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::auth::{constants::GRPC_AUTH_HEADER, AuthError};
use crate::auth::AuthError;

use anyhow::{bail, Context as _, Result};
use axum::http::HeaderValue;
Expand Down Expand Up @@ -40,11 +40,6 @@ pub(crate) fn parse_grpc_auth_header(
metadata: &MetadataMap,
required_fields: &Vec<String>,
) -> UserAuthContext {
// let mut context = metadata
// .get(GRPC_AUTH_HEADER)
// .ok_or(AuthError::AuthHeaderNotFound)
// .and_then(|h| h.to_str().map_err(|_| AuthError::AuthHeaderNonAscii))
// .and_then(|t| UserAuthContext::from_auth_str(t));
let mut context = UserAuthContext::empty();
for field in required_fields.iter() {
metadata
Expand Down

0 comments on commit 1f2de7e

Please sign in to comment.