Skip to content

Commit

Permalink
Removed 5 seconds sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
dooman87 committed Jun 16, 2024
1 parent 4e09c30 commit d9bf494
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions img/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"strconv"
"strings"
"sync"
"time"
)

// CacheTTL is the number of seconds that will be written to max-age HTTP header
Expand Down Expand Up @@ -292,7 +291,6 @@ func writeResult(op *Command) {
}

func (r *Service) transformUrl(resp http.ResponseWriter, req *http.Request, transformation Cmd, config interface{}) {
time.Sleep(5 * time.Second)
imgUrl := getImgUrl(req)
if len(imgUrl) == 0 {
http.Error(resp, "url param is required", http.StatusBadRequest)
Expand Down

0 comments on commit d9bf494

Please sign in to comment.