summaryrefslogtreecommitdiffstats
path: root/store/local_cache_supplier_reactions.go
diff options
context:
space:
mode:
Diffstat (limited to 'store/local_cache_supplier_reactions.go')
-rw-r--r--store/local_cache_supplier_reactions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/local_cache_supplier_reactions.go b/store/local_cache_supplier_reactions.go
index be32ab77e..2bf6b82d2 100644
--- a/store/local_cache_supplier_reactions.go
+++ b/store/local_cache_supplier_reactions.go
@@ -18,7 +18,7 @@ func (s *LocalCacheSupplier) handleClusterInvalidateReaction(msg *model.ClusterM
}
func (s *LocalCacheSupplier) ReactionSave(ctx context.Context, reaction *model.Reaction, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
- s.doInvalidateCacheCluster(s.reactionCache, reaction.PostId)
+ defer s.doInvalidateCacheCluster(s.reactionCache, reaction.PostId)
return s.Next().ReactionSave(ctx, reaction, hints...)
}