Skip to content

Commit

Permalink
refactor!: remove Record util
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <[email protected]>
  • Loading branch information
shizhMSFT committed Dec 2, 2024
1 parent f7517be commit 6d060be
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions progress/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,3 @@ func (f ManagerFunc) Track(desc ocispec.Descriptor) (Tracker, error) {
return f(desc, status, err)
}), nil
}

// Record adds the progress of a descriptor as a single entry.
func Record(m Manager, desc ocispec.Descriptor, status Status) error {
tracker, err := m.Track(desc)
if err != nil {
return err
}
err = tracker.Update(status)
if err != nil {
return err
}
return tracker.Close()
}

0 comments on commit 6d060be

Please sign in to comment.