Skip to content

Commit

Permalink
fix: remove unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcharytoniuk committed Jul 15, 2024
1 parent dfea6c4 commit 73f7774
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions loadbalancer/RespondToCompletion.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,15 @@ func (self *RespondToCompletion) ServeHTTP(response http.ResponseWriter, request

defer bufferedRequest.Close()

self.Logger.Info("TEST")
go self.handleRequest(bufferedRequest, true)

select {
case <-bufferedRequest.DoneChannel:
// buffer finished
self.Logger.Info("BUFFER FINISHED")
case <-request.Context().Done():
// request is canceled
self.Logger.Info("REQUEST IS CANCELED")
case <-time.After(self.LoadBalancerConfiguration.RequestBufferTimeout):
http.Error(response, "Request Timeout", http.StatusGatewayTimeout)
self.Logger.Info("REQUEST TIMEOUT")
}
}

Expand Down

0 comments on commit 73f7774

Please sign in to comment.