Attach context to instances produced by middleware (#273)

This commit is contained in:
Lucien Greathouse
2019-12-04 11:38:28 -08:00
committed by GitHub
parent f0a602b48b
commit 4b89bb087a
7 changed files with 29 additions and 16 deletions

View File

@@ -64,7 +64,8 @@ impl SnapshotMiddleware for SnapshotDir {
.metadata(
InstanceMetadata::new()
.instigating_source(entry.path())
.relevant_paths(relevant_paths),
.relevant_paths(relevant_paths)
.context(context),
);
if let Some(meta_entry) = vfs.get(meta_path).with_not_found()? {