From 434f62a7e6ffd6d16230ba920393c82c487633ae Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 31 Aug 2025 12:25:13 -0500 Subject: try mutex locks again --- repo.new.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'repo.new.go') diff --git a/repo.new.go b/repo.new.go index 5e3f8b4..de8a058 100644 --- a/repo.new.go +++ b/repo.new.go @@ -50,7 +50,9 @@ func (all *Repos) NewGoRepo(fullpath string, gopath string) (*Repo, error) { } // enforces GoPath is unique -func (all *Repos) AppendByGoPath(newr *Repo) bool { +// TODO: deprecate this (?) +// mutex's should finally work in the autogenpb protobuf code +func (all *Repos) AppendByGoPathOld(newr *Repo) bool { // all.RLock() repoMu.RLock() @@ -64,7 +66,6 @@ func (all *Repos) AppendByGoPath(newr *Repo) bool { // all.RUnlock() repoMu.RUnlock() - // all.Repos = append(all.Repos, newr) all.Append(newr) return true } -- cgit v1.2.3