Skip to content

Commit 299182b

Browse files
committed
continue undo of get -> fetch rename
1 parent ec15d99 commit 299182b

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use iroh::{NodeAddr, PublicKey, RelayUrl};
1919
use tokio::io::AsyncWriteExt;
2020

2121
use crate::{
22-
fetch::{
22+
get::{
2323
progress::{BlobProgress, DownloadProgress},
2424
Stats,
2525
},

src/downloader/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub type ProgressSubscriber = AsyncChannelProgressSender<DownloadProgress>;
2121
/// Track the progress of downloads.
2222
///
2323
/// This struct allows to create [`ProgressSender`] structs to be passed to
24-
/// [`crate::store::fetch_to_db`]. Each progress sender can be subscribed to by any number of
24+
/// [`crate::store::get_to_db`]. Each progress sender can be subscribed to by any number of
2525
/// [`ProgressSubscriber`] channel senders, which will receive each progress update (if they have
2626
/// capacity). Additionally, the [`ProgressTracker`] maintains a [`TransferState`] for each
2727
/// transfer, applying each progress update to update this state. When subscribing to an already

src/get.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! The client side API
22
//!
3-
//! To get data, create a connection using [iroh-net] or use any quinn
3+
//! To get data, create a connection using [iroh] or use any [iroh-quinn]
44
//! connection that was obtained in another way.
55
//!
66
//! Create a request describing the data you want to get.
@@ -11,7 +11,8 @@
1111
//! For some states you have to provide additional arguments when calling next,
1212
//! or you can choose to finish early.
1313
//!
14-
//! [iroh-net]: https://docs.rs/iroh-net
14+
//! [iroh-net]: https://docs.rs/iroh
15+
//! [iroh-quinn]: https://docs.rs/iroh-quinn
1516
use std::{
1617
fmt::{self, Debug},
1718
time::{Duration, Instant},

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! To implement a server, the [provider] module provides helpers for handling
1616
//! connections and individual requests given a store.
1717
//!
18-
//! To perform get requests, the [fetch] module provides utilities to perform
18+
//! To perform get requests, the [get] module provides utilities to perform
1919
//! requests and store the result in a store, as well as a low level state
2020
//! machine for executing requests.
2121
//!

src/store/get_to_db.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub async fn get_to_db<
7070
/// In the latter case, call [`FetchStateNeedsConn::proceed`] with a connection to a provider to
7171
/// proceed with the download.
7272
///
73-
/// Progress reporting works in the same way as documented in [`fetch_to_db`].
73+
/// Progress reporting works in the same way as documented in [`get_to_db`].
7474
pub async fn get_to_db_in_steps<
7575
D: BaoStore,
7676
P: ProgressSender<Msg = DownloadProgress> + IdGenerator,
@@ -92,7 +92,7 @@ pub async fn get_to_db_in_steps<
9292
}
9393
}
9494

95-
/// Intermediary state returned from [`fetch_to_db_in_steps`] for a download request that needs a
95+
/// Intermediary state returned from [`get_to_db_in_steps`] for a download request that needs a
9696
/// connection to proceed.
9797
#[derive(derive_more::Debug)]
9898
#[debug("FetchStateNeedsConn")]
@@ -111,7 +111,7 @@ impl FetchStateNeedsConn {
111111
}
112112
}
113113

114-
/// Output of [`fetch_to_db_in_steps`].
114+
/// Output of [`get_to_db_in_steps`].
115115
#[derive(Debug)]
116116
pub enum FetchState {
117117
/// The requested data is completely available in the local store, no network requests are

0 commit comments

Comments
 (0)