@@ -51,11 +51,11 @@ impl Storage for MapStorage {
5151 Ok ( ( ) )
5252 }
5353
54- async fn get ( & mut self , key : & DbKey ) -> PatriciaStorageResult < Option < DbValue > > {
54+ async fn get ( & self , key : & DbKey ) -> PatriciaStorageResult < Option < DbValue > > {
5555 Ok ( self . 0 . get ( key) . cloned ( ) )
5656 }
5757
58- async fn mget ( & mut self , keys : & [ & DbKey ] ) -> PatriciaStorageResult < Vec < Option < DbValue > > > {
58+ async fn mget ( & self , keys : & [ & DbKey ] ) -> PatriciaStorageResult < Vec < Option < DbValue > > > {
5959 Ok ( keys. iter ( ) . map ( |key| self . 0 . get ( key) . cloned ( ) ) . collect ( ) )
6060 }
6161
@@ -222,7 +222,7 @@ impl<S: Storage> Storage for CachedStorage<S> {
222222 type Stats = CachedStorageStats < S :: Stats > ;
223223 type Config = CachedStorageConfig < S :: Config > ;
224224
225- async fn get ( & mut self , key : & DbKey ) -> PatriciaStorageResult < Option < DbValue > > {
225+ async fn get ( & self , key : & DbKey ) -> PatriciaStorageResult < Option < DbValue > > {
226226 if let Some ( cached_value) = self . cache . get ( key) {
227227 return Ok ( cached_value) ;
228228 }
@@ -239,7 +239,7 @@ impl<S: Storage> Storage for CachedStorage<S> {
239239 Ok ( ( ) )
240240 }
241241
242- async fn mget ( & mut self , keys : & [ & DbKey ] ) -> PatriciaStorageResult < Vec < Option < DbValue > > > {
242+ async fn mget ( & self , keys : & [ & DbKey ] ) -> PatriciaStorageResult < Vec < Option < DbValue > > > {
243243 let mut values = vec ! [ None ; keys. len( ) ] ; // The None values are placeholders.
244244 let mut keys_to_fetch = Vec :: new ( ) ;
245245 let mut indices_to_fetch = Vec :: new ( ) ;
0 commit comments