File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ use serde::{Deserialize, Serialize};
33
33
use tokio:: io:: AsyncWriteExt ;
34
34
use tracing:: trace;
35
35
mod reader;
36
- pub use reader:: Reader ;
36
+ pub use reader:: BlobReader ;
37
37
38
38
// Public reexports from the proto module.
39
39
//
@@ -105,12 +105,12 @@ impl Blobs {
105
105
} )
106
106
}
107
107
108
- pub fn reader ( & self , hash : impl Into < Hash > ) -> Reader {
108
+ pub fn reader ( & self , hash : impl Into < Hash > ) -> BlobReader {
109
109
self . reader_with_opts ( ReaderOptions { hash : hash. into ( ) } )
110
110
}
111
111
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)
114
114
}
115
115
116
116
/// Delete a blob.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use crate::api::{
12
12
} ;
13
13
14
14
#[ derive( Debug ) ]
15
- pub struct Reader {
15
+ pub struct BlobReader {
16
16
blobs : Blobs ,
17
17
options : ReaderOptions ,
18
18
state : ReaderState ,
@@ -35,7 +35,7 @@ enum ReaderState {
35
35
Poisoned ,
36
36
}
37
37
38
- impl Reader {
38
+ impl BlobReader {
39
39
pub fn new ( blobs : Blobs , options : ReaderOptions ) -> Self {
40
40
Self {
41
41
blobs,
@@ -45,7 +45,7 @@ impl Reader {
45
45
}
46
46
}
47
47
48
- impl tokio:: io:: AsyncRead for Reader {
48
+ impl tokio:: io:: AsyncRead for BlobReader {
49
49
fn poll_read (
50
50
self : Pin < & mut Self > ,
51
51
cx : & mut Context < ' _ > ,
@@ -143,7 +143,7 @@ impl tokio::io::AsyncRead for Reader {
143
143
}
144
144
}
145
145
146
- impl tokio:: io:: AsyncSeek for Reader {
146
+ impl tokio:: io:: AsyncSeek for BlobReader {
147
147
fn start_seek (
148
148
self : std:: pin:: Pin < & mut Self > ,
149
149
seek_from : tokio:: io:: SeekFrom ,
You can’t perform that action at this time.
0 commit comments