From bb918db5c30f63c74e7d19f81ce72bcf7c9a4949 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 25 Mar 2016 19:11:36 +0100 Subject: [PATCH] Fix wrong hook execution: post-retrieve --- libimagstore/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index af10869e..57507e46 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -294,7 +294,7 @@ impl Store { }) .map(|e| FileLockEntry::new(self, e, id)) .and_then(|mut fle| { - if let Err(e) = self.execute_hooks_for_mut_file(self.pre_retrieve_aspects.clone(), &mut fle) { + if let Err(e) = self.execute_hooks_for_mut_file(self.post_retrieve_aspects.clone(), &mut fle) { Err(StoreError::new(StoreErrorKind::HookExecutionError, Some(Box::new(e)))) } else { Ok(fle)