mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-22 07:58:09 -07:00
Remove user snatches (should be handled by backend)
This commit is contained in:
@@ -67,19 +67,6 @@ func (c *Conn) IncrementTorrentSnatches(infohash string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Conn) IncrementUserSnatches(userID string) error {
|
||||
c.usersM.Lock()
|
||||
defer c.usersM.Unlock()
|
||||
|
||||
u, exists := c.users[userID]
|
||||
if !exists {
|
||||
return models.ErrUserDNE
|
||||
}
|
||||
u.Snatches++
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Conn) TouchTorrent(infohash string) error {
|
||||
c.torrentsM.Lock()
|
||||
defer c.torrentsM.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user