@@ -578,7 +578,7 @@ func PanicLoader[K comparable](max int) (*Loader[K, K], *[][]K) {
578578
579579func PanicCacheLoader [K comparable ](max int ) (* Loader [K , K ], * [][]K ) {
580580 var loadCalls [][]K
581- panicLoader := NewBatchedLoader (func (_ context.Context , keys []K ) []* Result [K ] {
581+ panicCacheLoader := NewBatchedLoader (func (_ context.Context , keys []K ) []* Result [K ] {
582582 if len (keys ) > 1 {
583583 panic ("Programming error" )
584584 }
@@ -594,12 +594,12 @@ func PanicCacheLoader[K comparable](max int) (*Loader[K, K], *[][]K) {
594594 return returnResult
595595
596596 }, WithBatchCapacity [K , K ](max ), withSilentLogger [K , K ]())
597- return panicLoader , & loadCalls
597+ return panicCacheLoader , & loadCalls
598598}
599599
600600func ErrorCacheLoader [K comparable ](max int ) (* Loader [K , K ], * [][]K ) {
601601 var loadCalls [][]K
602- panicLoader := NewBatchedLoader (func (_ context.Context , keys []K ) []* Result [K ] {
602+ errorCacheLoader := NewBatchedLoader (func (_ context.Context , keys []K ) []* Result [K ] {
603603 if len (keys ) > 1 {
604604 var results []* Result [K ]
605605 for _ , key := range keys {
@@ -619,7 +619,7 @@ func ErrorCacheLoader[K comparable](max int) (*Loader[K, K], *[][]K) {
619619 return returnResult
620620
621621 }, WithBatchCapacity [K , K ](max ), withSilentLogger [K , K ]())
622- return panicLoader , & loadCalls
622+ return errorCacheLoader , & loadCalls
623623}
624624
625625func BadLoader [K comparable ](max int ) (* Loader [K , K ], * [][]K ) {
0 commit comments