We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1ad97 commit da14532Copy full SHA for da14532
turbopack/crates/turbo-tasks-backend/src/database/startup_cache.rs
@@ -95,7 +95,8 @@ pub struct StartupCacheLayer<T: KeyValueDatabase> {
95
cache_size: AtomicUsize,
96
cache: Cache,
97
restored_map: ByKeySpace<FxHashMap<&'static [u8], &'static [u8]>>,
98
- restored: Vec<u8>,
+ // Need to be kept around to keep the restored_map reference alive
99
+ _restored: Vec<u8>,
100
}
101
102
impl<T: KeyValueDatabase> StartupCacheLayer<T> {
@@ -138,7 +139,7 @@ impl<T: KeyValueDatabase> StartupCacheLayer<T> {
138
139
Default::default(),
140
)
141
}),
- restored,
142
+ _restored: restored,
143
restored_map,
144
})
145
0 commit comments