Skip to content

Commit 8b9ef95

Browse files
committed
cr
1 parent 7c413ab commit 8b9ef95

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

backend/internal/services/image_update_service.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ func (s *ImageUpdateService) checkDigestUpdate(ctx context.Context, parts *Image
202202
hasUpdate := true
203203
for _, localDig := range allLocalDigests {
204204
if localDig == remoteDigest {
205+
localDigest = localDig
205206
hasUpdate = false
206207
break
207208
}
@@ -376,11 +377,6 @@ func (s *ImageUpdateService) getAllImageRefs(ctx context.Context, limit int) ([]
376377
return imageRefs, nil
377378
}
378379

379-
func (s *ImageUpdateService) getLocalImageDigest(ctx context.Context, imageRef string) (string, error) {
380-
digest, _, err := s.getLocalImageDigestWithAll(ctx, imageRef)
381-
return digest, err
382-
}
383-
384380
func (s *ImageUpdateService) getLocalImageDigestWithAll(ctx context.Context, imageRef string) (string, []string, error) {
385381
dockerClient, err := s.dockerService.CreateConnection(ctx)
386382
if err != nil {
@@ -827,6 +823,7 @@ func (s *ImageUpdateService) checkSingleImageInBatch(
827823
hasDigestUpdate := true
828824
for _, localDig := range allLocalDigests {
829825
if localDig == remoteDigest {
826+
localDigest = localDig
830827
hasDigestUpdate = false
831828
break
832829
}

0 commit comments

Comments
 (0)