v2.0.0: claims model - signed MMUR2 votes in a truth DB, merged view in a rebuildable cache DB; POST /api/claims, claims and merge routes, unsigned writes answer 410
Build and Push Docker Image / build (push) Successful in 5m1s
Build and Push Docker Image / build (push) Successful in 5m1s
This commit is contained in:
@@ -261,6 +261,13 @@ func (w *Watcher) ScanDirectoryDiff(root string, watcherID string) DiffScanResul
|
||||
w.dispatcher.Dispatch(event)
|
||||
state.Delete(relPath)
|
||||
result.Deleted++
|
||||
// Only the box-local facts go; the record's claims stay.
|
||||
if w.storage != nil {
|
||||
abs := filepath.Join(w.filesPath, filepath.FromSlash(relPath))
|
||||
if err := w.storage.RemoveFileTuple(abs); err != nil {
|
||||
log.Printf("[Watcher] forget %s: %v", abs, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user