Don't allow feeding a query cache entry twice
This commit is contained in:
parent
744a97b98c
commit
a0bdb4b498
@ -344,12 +344,10 @@ macro_rules! define_feedable {
|
|||||||
|
|
||||||
match cached {
|
match cached {
|
||||||
Ok(old) => {
|
Ok(old) => {
|
||||||
assert_eq!(
|
bug!(
|
||||||
value, old,
|
"Trying to feed an already recorded value for query {} key={key:?}:\nold value: {old:?}\nnew value: {value:?}",
|
||||||
"Trying to feed an already recorded value for query {} key={key:?}",
|
|
||||||
stringify!($name),
|
stringify!($name),
|
||||||
);
|
);
|
||||||
return old;
|
|
||||||
}
|
}
|
||||||
Err(()) => (),
|
Err(()) => (),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user