Skip to content

Commit

Permalink
disable prefetching for view calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jakmeier committed Sep 14, 2022
1 parent 8cccc75 commit a4731d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/store/src/trie/shard_tries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl ShardTries {
.or_insert_with(|| TrieCache::new(&self.0.trie_config, shard_uid, is_view))
.clone()
};
let prefetch_enabled = self.0.trie_config.enable_receipt_prefetching;
let prefetch_enabled = !is_view && self.0.trie_config.enable_receipt_prefetching;

let prefetch_api = prefetch_enabled.then(|| {
self.0
Expand Down

0 comments on commit a4731d3

Please sign in to comment.