diff options
Diffstat (limited to 'repo.new.go')
| -rw-r--r-- | repo.new.go | 5 |
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 } |
