Skip to content

Commit

Permalink
Fixing clippy & build
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatarya committed Sep 14, 2024
1 parent a460489 commit ad4d9fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 3 additions & 6 deletions cas_client/src/data_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ use cas::constants::*;
use std::str::FromStr;
use std::time::Duration;

use crate::{
cas_connection_pool::CasConnectionConfig,
};
use crate::cas_connection_pool::CasConnectionConfig;
use anyhow::{anyhow, Result};
use cas::common::CompressionScheme;
use cas::compression::{
Expand All @@ -25,13 +23,12 @@ use hyper_util::client::legacy::Client;
use hyper_util::rt::{TokioExecutor, TokioTimer};
use lazy_static::lazy_static;
use lz4::block::CompressionMode;
use opentelemetry::propagation::{Injector, TextMapPropagator};
use opentelemetry::propagation::Injector;
use retry_strategy::RetryStrategy;
use rustls_pemfile::Item;
use tokio_rustls::rustls;
use tokio_rustls::rustls::pki_types::CertificateDer;
use tracing::{debug, error, info_span, warn, Instrument, Span};
use tracing_opentelemetry::OpenTelemetrySpanExt;
use tracing::{debug, error, info_span, warn, Instrument};
use xet_error::Error;

use merklehash::MerkleHash;
Expand Down
10 changes: 5 additions & 5 deletions data/src/cas_interface.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::configurations::{Endpoint::*, RepoInfo, StorageConfig};
use super::errors::Result;
use crate::constants::{MAX_CONCURRENT_DOWNLOADS, XET_VERSION};
use crate::constants::MAX_CONCURRENT_DOWNLOADS;
use crate::metrics::FILTER_BYTES_SMUDGED;
use cas_client::{new_staging_client, CachingClient, LocalClient, RemoteClient, Staging};
use futures::prelude::stream::*;
Expand Down Expand Up @@ -37,19 +37,19 @@ pub(crate) async fn create_cas_client(
};

// Auth info.
let user_id = &cas_storage_config.auth.user_id;
let auth = &cas_storage_config.auth.login_id;
let _user_id = &cas_storage_config.auth.user_id;
let _auth = &cas_storage_config.auth.login_id;

// Usage tracking.
let repo_paths = maybe_repo_info
let _repo_paths = maybe_repo_info
.as_ref()
.map(|repo_info| &repo_info.repo_paths)
.cloned()
.unwrap_or_default();

// Raw remote client.
let remote_client = Arc::new(
RemoteClient::from_config(endpoint).await,
RemoteClient::from_config(endpoint.to_string()).await,
);

// Try add in caching capability.
Expand Down

0 comments on commit ad4d9fe

Please sign in to comment.