Skip to content

Commit d6fc774

Browse files
committed
disk storage is only possibly enabled when the graph has a path
1 parent f98b77c commit d6fc774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db4-graph/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl<EXT: PersistentStrategy<NS = NS<EXT>, ES = ES<EXT>>> TemporalGraph<EXT> {
207207
}
208208

209209
pub fn disk_storage_enabled(&self) -> bool {
210-
Extension::disk_storage_enabled()
210+
self.graph_dir().is_some() && Extension::disk_storage_enabled()
211211
}
212212
pub fn extension(&self) -> &EXT {
213213
self.storage().extension()

0 commit comments

Comments
 (0)