Skip to content

Commit b2b0216

Browse files
committed
Rename Reader to BlobReader
1 parent 2d388a2 commit b2b0216

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/api/blobs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use serde::{Deserialize, Serialize};
3333
use tokio::io::AsyncWriteExt;
3434
use tracing::trace;
3535
mod reader;
36-
pub use reader::Reader;
36+
pub use reader::BlobReader;
3737

3838
// Public reexports from the proto module.
3939
//
@@ -105,12 +105,12 @@ impl Blobs {
105105
})
106106
}
107107

108-
pub fn reader(&self, hash: impl Into<Hash>) -> Reader {
108+
pub fn reader(&self, hash: impl Into<Hash>) -> BlobReader {
109109
self.reader_with_opts(ReaderOptions { hash: hash.into() })
110110
}
111111

112-
pub fn reader_with_opts(&self, options: ReaderOptions) -> Reader {
113-
Reader::new(self.clone(), options)
112+
pub fn reader_with_opts(&self, options: ReaderOptions) -> BlobReader {
113+
BlobReader::new(self.clone(), options)
114114
}
115115

116116
/// Delete a blob.

src/api/blobs/reader.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::api::{
1212
};
1313

1414
#[derive(Debug)]
15-
pub struct Reader {
15+
pub struct BlobReader {
1616
blobs: Blobs,
1717
options: ReaderOptions,
1818
state: ReaderState,
@@ -35,7 +35,7 @@ enum ReaderState {
3535
Poisoned,
3636
}
3737

38-
impl Reader {
38+
impl BlobReader {
3939
pub fn new(blobs: Blobs, options: ReaderOptions) -> Self {
4040
Self {
4141
blobs,
@@ -45,7 +45,7 @@ impl Reader {
4545
}
4646
}
4747

48-
impl tokio::io::AsyncRead for Reader {
48+
impl tokio::io::AsyncRead for BlobReader {
4949
fn poll_read(
5050
self: Pin<&mut Self>,
5151
cx: &mut Context<'_>,
@@ -143,7 +143,7 @@ impl tokio::io::AsyncRead for Reader {
143143
}
144144
}
145145

146-
impl tokio::io::AsyncSeek for Reader {
146+
impl tokio::io::AsyncSeek for BlobReader {
147147
fn start_seek(
148148
self: std::pin::Pin<&mut Self>,
149149
seek_from: tokio::io::SeekFrom,

0 commit comments

Comments
 (0)