From 4dc7550e1c92b43dbe7c357be25628a3808dc7a2 Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang Date: Thu, 18 Jan 2024 08:16:45 +0000 Subject: [PATCH] renamed a function Signed-off-by: Xiaoxuan Wang --- content/oci/oci.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/oci/oci.go b/content/oci/oci.go index 477a9040..33f5dc05 100644 --- a/content/oci/oci.go +++ b/content/oci/oci.go @@ -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) } @@ -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()