From cb9b06551ddc1fae33046733f79ede20f8d09f9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Sun, 4 Apr 2021 11:23:04 +0200 Subject: [PATCH] entity: more comments --- entity/dag/operation.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entity/dag/operation.go b/entity/dag/operation.go index 1bfb3d3df3d3a98a859f7126a9d6f48832732c08..a320859f4278a39562af5f0069ae108ad0c59e4e 100644 --- a/entity/dag/operation.go +++ b/entity/dag/operation.go @@ -40,5 +40,9 @@ type OperationWithFiles interface { Operation // GetFiles return the files needed by this operation + // This implies that the Operation maintain and store internally the references to those files. This is how + // this information is read later, when loading from storage. + // For example, an operation that has a text value referencing some files would maintain a mapping (text ref --> + // hash). GetFiles() []repository.Hash }