mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-21 23:48:11 -07:00
Simpler interface
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ func (t *Tracker) ServeScrape(w http.ResponseWriter, r *http.Request, p httprout
|
||||
}
|
||||
|
||||
if t.cfg.Private {
|
||||
_, err = conn.(tracker.PrivateConn).FindUser(scrape.Passkey)
|
||||
_, err = conn.FindUser(scrape.Passkey)
|
||||
if err == tracker.ErrUserDNE {
|
||||
fail(w, r, err)
|
||||
return http.StatusOK, nil
|
||||
|
||||
Reference in New Issue
Block a user