mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	Replace deprecated NewDeltaFIFO with NewDeltaFIFOWithOptions (#5200)
Replace deprecated `cache.NewDeltaFIFO` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
		| @@ -13,7 +13,7 @@ func NewIndexerInformer(lw cache.ListerWatcher, objType runtime.Object, h cache. | ||||
| 	clientState := cache.NewIndexer(cache.DeletionHandlingMetaNamespaceKeyFunc, indexers) | ||||
|  | ||||
| 	cfg := &cache.Config{ | ||||
| 		Queue:            cache.NewDeltaFIFO(cache.MetaNamespaceKeyFunc, clientState), | ||||
| 		Queue:            cache.NewDeltaFIFOWithOptions(cache.DeltaFIFOOptions{KeyFunction: cache.MetaNamespaceKeyFunc, KnownObjects: clientState}), | ||||
| 		ListerWatcher:    lw, | ||||
| 		ObjectType:       objType, | ||||
| 		FullResyncPeriod: defaultResyncPeriod, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user