File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ impl BatchExt for Batch {
223223 #[ cfg( with_metrics) ]
224224 WRITE_BLOB_COUNTER . with_label_values ( & [ ] ) . inc ( ) ;
225225 let blob_key = bcs:: to_bytes ( & BaseKey :: Blob ( blob. id ( ) ) ) ?;
226- self . put_key_value ( blob_key. to_vec ( ) , & blob. bytes ( ) ) ? ;
226+ self . put_key_value_bytes ( blob_key. to_vec ( ) , blob. bytes ( ) . to_vec ( ) ) ;
227227 Ok ( ( ) )
228228 }
229229
@@ -526,7 +526,7 @@ where
526526
527527 async fn read_blob ( & self , blob_id : BlobId ) -> Result < Blob , ViewError > {
528528 let blob_key = bcs:: to_bytes ( & BaseKey :: Blob ( blob_id) ) ?;
529- let maybe_blob_bytes = self . store . read_value :: < Vec < u8 > > ( & blob_key) . await ?;
529+ let maybe_blob_bytes = self . store . read_value_bytes ( & blob_key) . await ?;
530530 #[ cfg( with_metrics) ]
531531 READ_BLOB_COUNTER . with_label_values ( & [ ] ) . inc ( ) ;
532532 let blob_bytes = maybe_blob_bytes. ok_or_else ( || ViewError :: BlobsNotFound ( vec ! [ blob_id] ) ) ?;
@@ -541,7 +541,7 @@ where
541541 . iter ( )
542542 . map ( |blob_id| bcs:: to_bytes ( & BaseKey :: Blob ( * blob_id) ) )
543543 . collect :: < Result < Vec < _ > , _ > > ( ) ?;
544- let maybe_blob_bytes = self . store . read_multi_values :: < Vec < u8 > > ( blob_keys) . await ?;
544+ let maybe_blob_bytes = self . store . read_multi_values_bytes ( blob_keys) . await ?;
545545 #[ cfg( with_metrics) ]
546546 READ_BLOB_COUNTER
547547 . with_label_values ( & [ ] )
You can’t perform that action at this time.
0 commit comments