From d1744f5ee2c55176bb877f7d13b92efd29877077 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 15 Nov 2022 19:27:01 +0100 Subject: go-git: concurrent loading of clocks --- entity/dag/clock.go | 1 + 1 file changed, 1 insertion(+) (limited to 'entity') 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) }) -- cgit