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};
3333use tokio:: io:: AsyncWriteExt ;
3434use tracing:: trace;
3535mod 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.
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments