refactor(tvix/castore/blobservice): rm AsyncBufRead from BlobReader
There's no need to already require this to be buffered here. Change-Id: Ib9a11b194e0754d87ab8d2ef0b8cb0f4edc01229 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10074 Tested-by: BuildkiteCI Reviewed-by: raitobezarius <tvl@lahfa.xyz>
This commit is contained in:
		
							parent
							
								
									9c0586e3a7
								
							
						
					
					
						commit
						4e9e4b19ef
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -47,10 +47,7 @@ pub trait BlobWriter: tokio::io::AsyncWrite + Send + Sync + Unpin + 'static {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
/// A [tokio::io::AsyncRead] that also allows seeking.
 | 
			
		||||
pub trait BlobReader:
 | 
			
		||||
    tokio::io::AsyncRead + tokio::io::AsyncSeek + tokio::io::AsyncBufRead + Send + Unpin + 'static
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
pub trait BlobReader: tokio::io::AsyncRead + tokio::io::AsyncSeek + Send + Unpin + 'static {}
 | 
			
		||||
 | 
			
		||||
/// A [`io::Cursor<Vec<u8>>`] can be used as a BlobReader.
 | 
			
		||||
impl BlobReader for io::Cursor<Vec<u8>> {}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue