Change to snakecase

This commit is contained in:
Adrian Brink 2017-04-06 22:31:03 +02:00
parent 3632a98062
commit 9552ca7bb3
1 changed files with 2 additions and 2 deletions

View File

@ -371,8 +371,8 @@ impl HeaderChain {
Some(header) => Some(header),
None => {
match self.db.get(self.col, &hash) {
Ok(dbValue) => {
dbValue.map(|x| x.to_vec()).map(encoded::Header::new)
Ok(db_value) => {
db_value.map(|x| x.to_vec()).map(encoded::Header::new)
.and_then(|header| {
cache.insert_block_header(hash.clone(), header.clone());
Some(header)