Merge pull request #7963 from henry118/gc-bug
use local variable for rt when iterating collectors
This commit is contained in:
		| @@ -141,6 +141,7 @@ func startGCContext(ctx context.Context, collectors map[gc.ResourceType]Collecto | ||||
| 	if len(collectors) > 0 { | ||||
| 		contexts = map[gc.ResourceType]CollectionContext{} | ||||
| 		for rt, collector := range collectors { | ||||
| 			rt := rt | ||||
| 			c, err := collector.StartCollection(ctx) | ||||
| 			if err != nil { | ||||
| 				// Only skipping this resource this round | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Derek McGowan
					Derek McGowan