Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
seanses committed Feb 6, 2025
1 parent a39513f commit 45c7b02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions data/src/bin/xtool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ use anyhow::Result;
use cas_client::build_http_client;
use cas_object::CompressionScheme;
use clap::{Args, Parser, Subcommand};
use walkdir::WalkDir;
use xet_threadpool::ThreadPool;

use data::migration_tool::hub_client::HubClient;
use data::migration_tool::migrate::migrate_files_impl;
use walkdir::WalkDir;
use xet_threadpool::ThreadPool;

const DEFAULT_HF_ENDPOINT: &str = "https://huggingface.co";

Expand Down
14 changes: 7 additions & 7 deletions data/src/migration_tool/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ use super::hub_client::{HubClient, HubClientTokenRefresher};
/// Migrate files to the Hub with external async runtime.
/// How to use:
/// ```no_run
/// let file_paths = vec!["/path/to/file1".to_string(), "/path/to/file2".to_string()];
/// let hub_endpoint = "https://huggingface.co";
/// let hub_token = "your_token";
/// let repo_type = "model";
/// let repo_id = "your_repo_id";
/// let handle = tokio::runtime::Handle::current();
/// migrate_with_external_runtime(file_paths, hub_endpoint, hub_token, repo_type, repo_id, handle).await?;
/// let file_paths = vec!["/path/to/file1".to_string(), "/path/to/file2".to_string()];
/// let hub_endpoint = "https://huggingface.co";
/// let hub_token = "your_token";
/// let repo_type = "model";
/// let repo_id = "your_repo_id";
/// let handle = tokio::runtime::Handle::current();
/// migrate_with_external_runtime(file_paths, hub_endpoint, hub_token, repo_type, repo_id, handle).await?;
/// ```
pub async fn migrate_with_external_runtime(
file_paths: Vec<String>,
Expand Down

0 comments on commit 45c7b02

Please sign in to comment.