diff options
| author | forge <[email protected]> | 2025-10-06 12:17:14 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-06 12:18:25 -0500 |
| commit | 5b277e7686974d2195586d5f5b82838ee9ddb036 (patch) | |
| tree | defcb27118f58bec1889a13881f5e8ea7f3bc093 /handleRepos.go | |
| parent | 3d2fc4fe304ba53d3b576aaa4c8e6953565cdc11 (diff) | |
working on ping pong
Diffstat (limited to 'handleRepos.go')
| -rw-r--r-- | handleRepos.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/handleRepos.go b/handleRepos.go index ac28c7f..5a1f07f 100644 --- a/handleRepos.go +++ b/handleRepos.go @@ -64,9 +64,14 @@ func addRequest(pb *gitpb.Repos, reqPB *httppb.HttpRequest) *gitpb.Repos { func checkRequest(pb *gitpb.Repos, reqPB *httppb.HttpRequest) *gitpb.Repos { checkPB := gitpb.NewRepos() for repo := range pb.IterAll() { - found := me.forge.PrepareCheckRepo(repo.Namespace) + // found := me.forge.PrepareCheckRepo(repo.Namespace) + found := me.forge.Repos.FindByNamespace(repo.Namespace) if found == nil { - // don't know about this + if me.missing == nil { + continue + } + // new missing repo + me.missing.AppendByNamespace(repo) continue } if found.GetURL() != repo.GetURL() { @@ -74,6 +79,7 @@ func checkRequest(pb *gitpb.Repos, reqPB *httppb.HttpRequest) *gitpb.Repos { } checkPB.Append(found) } + saveMissing() return checkPB } |
