fixup! fixup! Add randomisation test for cache concurrency.

This commit is contained in:
2023-04-08 03:14:53 +01:00
parent 833517f35c
commit 841c136e71
+4
View File
@@ -115,6 +115,10 @@ func (c *BaseClient) Query(queryContent string, queryVariables interface{}, quer
if cacheBaseClient.cache.enabled && jsonData != nil && queryHash != "" {
c.cache.client.Set(queryHash, jsonData)
} else if jsonData == nil {
cacheBaseClient.Logger.Warn(cacheBaseClient, "Response is empty")
} else if queryHash == "" {
cacheBaseClient.Logger.Warn(cacheBaseClient, "Query hash is empty")
}
return cacheBaseClient.decodeResponse(jsonData), err