(&self, key: &[u8], value: Vec<u8>)
| 27 | } |
| 28 | |
| 29 | fn insert(&self, key: &[u8], value: Vec<u8>) -> Result<()> { |
| 30 | self.db |
| 31 | .put(key, value) |
| 32 | .map_err(|_| ChainError::StoragePutError(Storage::key_string(key)))?; |
| 33 | |
| 34 | Ok(()) |
| 35 | } |
| 36 | |
| 37 | // noop |
| 38 | fn remove(&self, _key: &[u8]) -> Result<()> { |
no outgoing calls