aboutsummaryrefslogtreecommitdiffstats
path: root/entity/dag/clock.go
diff options
context:
space:
mode:
Diffstat (limited to 'entity/dag/clock.go')
-rw-r--r--entity/dag/clock.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/entity/dag/clock.go b/entity/dag/clock.go
index fa944b33..c9d2b94b 100644
--- a/entity/dag/clock.go
+++ b/entity/dag/clock.go
@@ -22,14 +22,10 @@ func ClockLoader(defs ...Definition) repository.ClockLoader {
resolver := identity.NewStubResolver()
for _, def := range defs {
- // override the resolver
- def := def
- def.identityResolver = resolver
-
// we actually just need to read all entities,
// as that will create and update the clocks
// TODO: concurrent loading to be faster?
- for b := range ReadAll(def, repo) {
+ for b := range ReadAll(def, repo, resolver) {
if b.Err != nil {
return b.Err
}