simplify cache logic
This commit is contained in:
parent
d63fc8d3ea
commit
f83994a2fa
@ -171,10 +171,8 @@ impl ChartManager {
|
|||||||
|
|
||||||
self.use_back_cache =
|
self.use_back_cache =
|
||||||
!underlying_update && self.resolution == resolution && self.back_cache.is_some();
|
!underlying_update && self.resolution == resolution && self.back_cache.is_some();
|
||||||
self.use_front_cache = match underlying_update {
|
self.use_front_cache =
|
||||||
true => false,
|
!underlying_update && num_interval == self.num_interval && self.front_cache.is_some();
|
||||||
false => num_interval == self.num_interval && self.front_cache.is_some(),
|
|
||||||
};
|
|
||||||
|
|
||||||
self.func_str = func_str.to_string();
|
self.func_str = func_str.to_string();
|
||||||
self.min_x = min_x;
|
self.min_x = min_x;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user