aboutsummaryrefslogtreecommitdiffstats
path: root/entity/dag/clock.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-11-15 19:27:01 +0100
committerMichael Muré <batolettre@gmail.com>2022-11-15 19:27:01 +0100
commitd1744f5ee2c55176bb877f7d13b92efd29877077 (patch)
treec2d53c9efd651e9de81eaa9be36771345f557489 /entity/dag/clock.go
parent53059ecbfefe21e5e87d06ca44e3cd99a66c0c5f (diff)
downloadgit-bug-d1744f5ee2c55176bb877f7d13b92efd29877077.tar.gz
go-git: concurrent loading of clocks
Diffstat (limited to 'entity/dag/clock.go')
-rw-r--r--entity/dag/clock.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/entity/dag/clock.go b/entity/dag/clock.go
index 74a6cd73..a195df1f 100644
--- a/entity/dag/clock.go
+++ b/entity/dag/clock.go
@@ -21,6 +21,7 @@ func ClockLoader(defs ...Definition) repository.ClockLoader {
Witnesser: func(repo repository.ClockedRepo) error {
var errG errgroup.Group
for _, def := range defs {
+ def := def
errG.Go(func() error {
return ReadAllClocksNoCheck(def, repo)
})