mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-09-01 09:45:16 +00:00
fix syntactic inconsistencies
This commit is contained in:
parent
fb1df95366
commit
0ed8f50348
1 changed files with 2 additions and 3 deletions
|
@ -21,8 +21,7 @@ func (t *Tracker) ServeAnnounce(w http.ResponseWriter, r *http.Request, p httpro
|
||||||
if err == models.ErrMalformedRequest {
|
if err == models.ErrMalformedRequest {
|
||||||
fail(w, r, err)
|
fail(w, r, err)
|
||||||
return http.StatusOK
|
return http.StatusOK
|
||||||
}
|
} else if err != nil {
|
||||||
if err != nil {
|
|
||||||
return http.StatusInternalServerError
|
return http.StatusInternalServerError
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,7 +154,7 @@ func handleEvent(c tracker.Conn, a *models.Announce, p *models.Peer, u *models.U
|
||||||
}
|
}
|
||||||
|
|
||||||
case t.InLeecherPool(p) && a.Left == 0:
|
case t.InLeecherPool(p) && a.Left == 0:
|
||||||
// A leecher completed but the event was never received
|
// A leecher completed but the event was never received.
|
||||||
err = tracker.LeecherFinished(c, t, p)
|
err = tracker.LeecherFinished(c, t, p)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue