summaryrefslogtreecommitdiff
path: root/repo.new.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-31 12:25:13 -0500
committerJeff Carr <[email protected]>2025-08-31 12:25:13 -0500
commit434f62a7e6ffd6d16230ba920393c82c487633ae (patch)
tree06f90d80f7c5c995aeac008bcae6e33491c82138 /repo.new.go
parentf585edc1925a778f82cd2db03316a42090d57f0f (diff)
try mutex locks again
Diffstat (limited to 'repo.new.go')
-rw-r--r--repo.new.go5
1 files changed, 3 insertions, 2 deletions
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
}