Skip to content

Commit

Permalink
fix(worker): remove srv timeout (#5863)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored Jul 1, 2021
1 parent dab0fe6 commit 966f98a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions engine/worker/internal/http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"net/http"
"strconv"
"strings"
"time"

"github.com/gorilla/mux"
"github.com/rockbears/log"
Expand Down Expand Up @@ -64,10 +63,8 @@ func (w *CurrentWorker) Serve(c context.Context) error {
r.HandleFunc("/version", LogMiddleware(setVersionHandler(c, w)))

srv := &http.Server{
Handler: r,
Addr: "127.0.0.1:0",
WriteTimeout: 6 * time.Minute,
ReadTimeout: 6 * time.Minute,
Handler: r,
Addr: "127.0.0.1:0",
}

//Start the server
Expand Down

0 comments on commit 966f98a

Please sign in to comment.