Skip to content

Commit

Permalink
remove cancelability context
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Mar 2, 2024
1 parent acda21d commit de8b27e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mp4_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ func loadBalancer(ctx context.Context, stream database.StreamInfo) (resp *http.R
}

func mp4Handler(w http.ResponseWriter, r *http.Request, db *sql.DB) {
// Create a context with cancellation capability
ctx, cancel := context.WithCancel(r.Context())
defer cancel()
ctx := r.Context()

// Log the incoming request
log.Printf("Received request from %s for URL: %s\n", r.RemoteAddr, r.URL.Path)
Expand Down

0 comments on commit de8b27e

Please sign in to comment.