fixup! fixup! fixup! Avoid unnecessary copying of the whole struct.

This commit is contained in:
2023-04-08 05:19:57 +01:00
parent ce736958c6
commit dfb082ad51
+3
View File
@@ -74,6 +74,9 @@ func (c *BaseClient) Query(queryContent string, queryVariables interface{}, quer
var cachedResponse []byte var cachedResponse []byte
cacheBaseClient := c cacheBaseClient := c
defer func() {
cacheBaseClient = nil
}()
query := cacheBaseClient.NewQuery(queryContent, queryVariables) query := cacheBaseClient.NewQuery(queryContent, queryVariables)