Skip to content

Commit

Permalink
fixed #23
Browse files Browse the repository at this point in the history
  • Loading branch information
clinuxrulz committed Feb 8, 2018
1 parent c9f5b39 commit 10a3af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sodium/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ pub trait IsCellPrivate<A: Clone + 'static> {
let s = LazySample::new(me.clone());
{
let s = s.clone();
trans.last(
trans.sample(
move || {
let sample_no_trans = me.sample_no_trans_();
let mut s = s.data.deref().borrow_mut();
Expand Down
2 changes: 1 addition & 1 deletion src/sodium/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl Transaction {
});
}

pub fn sample<F: FnMut() + 'static>(&mut self, sodium_ctx: &mut SodiumCtx, action: F) {
pub fn sample<F: FnMut() + 'static>(&mut self, action: F) {
self.with_data_mut(|data| {
data.sample_q.push(Box::new(action));
});
Expand Down

0 comments on commit 10a3af7

Please sign in to comment.