Description
Current code has type bug on DeferCache.
We are specify type of value which will be stored in local cache as Deferred[QueryResult] but actual fetchInner expect Deferred[QueryRequestWithResult] in AsynchbaseStorage.scala.
This only occur when queryParam has cacheTTL option.
wrong type.
private val futureCache = new DeferCache[QueryResult](config)(ec)
right type.
private val futureCache = new DeferCache[QueryRequestWithResult](config)(ec)
also caller of this futureCache variable need to be changed according to right type.
Attachments
Issue Links
- links to