Skip to content

Commit

Permalink
Merge pull request #706 from clusterpedia-io/memory_storage_clean_res…
Browse files Browse the repository at this point in the history
…ource

memorystorage: fix deleting cluster info when cleaning a resource
  • Loading branch information
Iceber authored Nov 21, 2024
2 parents e769a26 + df2a249 commit ec0fc8e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/storage/memorystorage/memory_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func (s *StorageFactory) CleanClusterResource(ctx context.Context, cluster strin
if rs, ok := storages.resourceStorages[gvr]; ok {
rs.CrvSynchro.RemoveCluster(cluster)
rs.watchCache.CleanCluster(cluster)
delete(s.clusters, cluster)
}

return nil
Expand Down

0 comments on commit ec0fc8e

Please sign in to comment.