Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wy65701436 committed May 25, 2023
1 parent a156f4c commit f238df9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/controller/proxy/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,6 @@ func (c *controller) EnsureTag(ctx context.Context, art lib.ArtifactInfo, tagNam
if err != nil {
return err
}
fmt.Println("===============================")
fmt.Printf("UpdateTag, %s", tagName)
fmt.Println("===============================")
fmt.Printf("Id, %d", tagId)
fmt.Println("===============================")
// update the pull time of tag for the first time cache
if err := tag.Ctl.Update(ctx, &tag.Tag{
Tag: model_tag.Tag{
Expand Down
3 changes: 0 additions & 3 deletions src/server/middleware/repoproxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,6 @@ func proxyManifestHead(ctx context.Context, w http.ResponseWriter, ctl proxy.Con
bCtx := orm.Context()
for i := 0; i < ensureTagMaxRetry; i++ {
time.Sleep(ensureTagInterval)
fmt.Println("===============================")
fmt.Printf("EnsureTag, %s", art.Tag)
fmt.Println("===============================")
bArt := lib.ArtifactInfo{ProjectName: art.ProjectName, Repository: art.Repository, Digest: string(desc.Digest)}
err := ctl.EnsureTag(bCtx, bArt, art.Tag)
if err == nil {
Expand Down

0 comments on commit f238df9

Please sign in to comment.