Skip to content

Commit

Permalink
Close http.Client idle connection in grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jul 14, 2024
1 parent 359b34b commit 667a3c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/grid.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ func Grid() fiber.Handler {
var wg sync.WaitGroup
images := make([]image.Image, len(mediaURLs))
client := http.Client{Transport: transport, Timeout: timeout}
defer client.CloseIdleConnections()
for i, mediaURL := range mediaURLs {
wg.Add(1)

Expand Down

0 comments on commit 667a3c6

Please sign in to comment.