Skip to content

Commit

Permalink
renamed a function
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
wangxiaoxuan273 committed Jan 18, 2024
1 parent d5f0e68 commit 4dc7550
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func (s *Store) GC(ctx context.Context) error {
defer s.sync.Unlock()

// get reachable nodes by reloading the index
err := s.reloadIndexforGC(ctx)
err := s.GCIndex(ctx)
if err != nil {
return fmt.Errorf("unable to reload index: %w", err)
}
Expand Down Expand Up @@ -512,8 +512,8 @@ func (s *Store) GC(ctx context.Context) error {
return nil
}

// reloadIndexforGC reloads the index and updates metadata.
func (s *Store) reloadIndexforGC(ctx context.Context) error {
// GCIndex reloads the index and updates metadata.
func (s *Store) GCIndex(ctx context.Context) error {
refMap := s.tagResolver.Map()
s.tagResolver = resolver.NewMemory()
s.graph = graph.NewMemory()
Expand Down

0 comments on commit 4dc7550

Please sign in to comment.