mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-15 01:07:34 +00:00
fixup! fixup! Add retries functionality.
This commit is contained in:
@@ -79,7 +79,7 @@ func (g *GraphQL) Query(queryContent string, queryVariables interface{}, queryHe
|
|||||||
g.Log.Error("Unable to send the query", map[string]interface{}{"_error": err.Error()})
|
g.Log.Error("Unable to send the query", map[string]interface{}{"_error": err.Error()})
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if httpResponse.StatusCode >= 200 && httpResponse.StatusCode <= 204 {
|
if httpResponse.StatusCode <= 200 && httpResponse.StatusCode >= 204 {
|
||||||
return errors.New(fmt.Sprintf("%v", httpResponse.StatusCode))
|
return errors.New(fmt.Sprintf("%v", httpResponse.StatusCode))
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user