Add pull time for proxy cache artifact in first pull

Fixes #13152

Signed-off-by: stonezdj <stonezdj@gmail.com>
This commit is contained in:
stonezdj 2020-10-14 13:33:54 +08:00
parent 6cdae44dc2
commit 9264105934

View File

@ -142,7 +142,8 @@ func (c *controller) ProxyManifest(ctx context.Context, p *models.Project, art l
if err != nil { if err != nil {
log.Errorf("failed to get manifest, error %v", err) log.Errorf("failed to get manifest, error %v", err)
} }
} else { }
if a != nil {
SendPullEvent(a, art.Tag, operator) SendPullEvent(a, art.Tag, operator)
} }
}(operator.FromContext(ctx)) }(operator.FromContext(ctx))