From bdcaba32f89cc635f39300aa213931c8eeffb909 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 29 Nov 2024 16:22:19 -0600 Subject: autogenpb marshal.pb.go and sort.pb.go Signed-off-by: Jeff Carr --- repos.helpers.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'repos.helpers.go') diff --git a/repos.helpers.go b/repos.helpers.go index 3420526..50f3277 100644 --- a/repos.helpers.go +++ b/repos.helpers.go @@ -3,8 +3,8 @@ package gitpb // delete a gopath: // myrepos.DeleteByPath("go.wit.com/apps/go-clone") func (all *Repos) DeleteByPath(gopath string) *Repo { - repolock.Lock() - defer repolock.Unlock() + reposMu.Lock() + defer reposMu.Unlock() for i, _ := range all.Repos { if all.Repos[i].GoPath == gopath { @@ -18,8 +18,8 @@ func (all *Repos) DeleteByPath(gopath string) *Repo { // find a package by gopath func (all *Repos) FindByGoPath(gopath string) *Repo { - repolock.RLock() - defer repolock.RUnlock() + reposMu.RLock() + defer reposMu.RUnlock() for _, p := range all.Repos { if p.GoPath == gopath { @@ -32,8 +32,8 @@ func (all *Repos) FindByGoPath(gopath string) *Repo { // enforces no duplicate gopath's func (all *Repos) add(newP *Repo) bool { - repolock.Lock() - defer repolock.Unlock() + reposMu.Lock() + defer reposMu.Unlock() for _, p := range all.Repos { if p.GoPath == newP.GoPath { -- cgit v1.2.3