fermi: set atom value even it doesn't exist

This commit is contained in:
Yin Jifeng 2022-06-13 18:32:03 +08:00
parent d9242c6935
commit c97f051bbd

View file

@ -74,6 +74,13 @@ impl AtomRoot {
}
} else {
log::trace!("no atoms found for {:?}", ptr);
atoms.insert(
ptr,
Slot {
value: Rc::new(value),
subscribers: HashSet::new(),
},
);
}
}