Skip to content

Commit

Permalink
Use DoTimeout everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jan 25, 2024
1 parent 3ea3004 commit a4bd6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func parseGQLData(postID string, req *fasthttp.Request, res *fasthttp.Response)
req.URI().QueryArgs().Add("query_hash", "b3055c01b4b222b8a47dc12b090e4e64")
req.URI().QueryArgs().Add("variables", "{\"shortcode\":\""+postID+"\"}")

if err := client.Do(req, res); err != nil {
if err := client.DoTimeout(req, res, timeout); err != nil {
return nil, err
}
return res.Body(), nil
Expand Down

0 comments on commit a4bd6b6

Please sign in to comment.