From 82eaceffc1d750832a2a66f206749d2dca968cce Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 21 Sep 2018 18:18:51 +0200 Subject: repo: split the Repo interface to avoid abstraction leak in RepoCache --- misc/random_bugs/create_random_bugs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc/random_bugs') diff --git a/misc/random_bugs/create_random_bugs.go b/misc/random_bugs/create_random_bugs.go index 75ce5f82..dfef4e07 100644 --- a/misc/random_bugs/create_random_bugs.go +++ b/misc/random_bugs/create_random_bugs.go @@ -29,11 +29,11 @@ func DefaultOptions() Options { } } -func CommitRandomBugs(repo repository.Repo, opts Options) { +func CommitRandomBugs(repo repository.ClockedRepo, opts Options) { CommitRandomBugsWithSeed(repo, opts, time.Now().UnixNano()) } -func CommitRandomBugsWithSeed(repo repository.Repo, opts Options, seed int64) { +func CommitRandomBugsWithSeed(repo repository.ClockedRepo, opts Options, seed int64) { bugs := GenerateRandomBugsWithSeed(opts, seed) for _, b := range bugs { -- cgit