mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-12 00:45:31 +00:00
fixup! fixup! fixup! Avoid unnecessary copying of the whole struct.
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user