Skip to content

Commit

Permalink
fix rebase onto 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
antiochp committed Mar 11, 2019
1 parent aec9ed2 commit c844177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions servers/src/common/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use crate::p2p;
use crate::pool;
use crate::pool::types::DandelionConfig;
use crate::store;
use crate::util::RwLock;

/// Error type wrapping underlying module errors.
#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion store/src/lmdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ impl Store {
pub fn iter<T: ser::Readable>(&self, from: &[u8]) -> Result<SerIterator<T>, Error> {
let db = self.db.read();
let tx = Arc::new(lmdb::ReadTransaction::new(self.env.clone())?);
let cursor = Arc::new(tx.cursor(self.db.clone())?);
let cursor = Arc::new(tx.cursor(db.as_ref().unwrap().clone()).unwrap());
Ok(SerIterator {
tx,
cursor,
Expand Down

0 comments on commit c844177

Please sign in to comment.