You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the cached type doesn't match the expected type for a batch request item, we currently delete the cache item and fail the call. Instead, we should delete the cache item and then proceed to fetch the request from the remote.
There are two ways to go about this:
Have the generic batch request method return concrete types instead of serde_json::Value. This would be the preferable solution, but heterogenous lists are difficult to express with the Rust type system.
Handle it in methods that use the generic batch request method to make concrete batch calls.
When the cached type doesn't match the expected type for a batch request item, the faulty cache item is deleted and the request is fetched the request from the remote.
The text was updated successfully, but these errors were encountered:
When the cached type doesn't match the expected type for a batch request item, we currently delete the cache item and fail the call. Instead, we should delete the cache item and then proceed to fetch the request from the remote.
There are two ways to go about this:
serde_json::Value
. This would be the preferable solution, but heterogenous lists are difficult to express with the Rust type system.Related #238
Definition of done
When the cached type doesn't match the expected type for a batch request item, the faulty cache item is deleted and the request is fetched the request from the remote.
The text was updated successfully, but these errors were encountered: