Skip to content

Commit

Permalink
backend/gateway: fix violation
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Oct 20, 2022
1 parent 5cfc0b8 commit 4ccbd31
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,11 @@ func RunWithConfig(f *Flags, cfg *gatewayv1.Config, cf *ComponentFactory, assets
}

srv := &http.Server{
Handler: mux.InsecureHandler(rpcMux),
Addr: addr,
ReadTimeout: timeout,
WriteTimeout: timeout,
Handler: mux.InsecureHandler(rpcMux),
Addr: addr,
ReadTimeout: timeout,
ReadHeaderTimeout: timeout,
WriteTimeout: timeout,
}

sc := make(chan os.Signal, 1)
Expand Down

0 comments on commit 4ccbd31

Please sign in to comment.