Skip to content

Commit fa6b12d

Browse files
authored
fix: remove additional supplier invoke on APQ after caching entries (#2073)
### 📝 Description Fixes duplicate call of supplier on APQ caching. ### 🔗 Related Issues #2072
1 parent f132902 commit fa6b12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

executions/graphql-kotlin-automatic-persisted-queries/src/main/kotlin/com/expediagroup/graphql/apq/cache/DefaultAutomaticPersistedQueriesCache.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ class DefaultAutomaticPersistedQueriesCache : AutomaticPersistedQueriesCache {
3535
} ?: run {
3636
val entry = supplier.invoke()
3737
cache[key] = entry
38-
CompletableFuture.completedFuture(supplier.invoke())
38+
CompletableFuture.completedFuture(entry)
3939
}
4040
}

0 commit comments

Comments
 (0)