Remove the rest of slots

This commit is contained in:
Justin Li
2013-12-05 20:12:15 -05:00
parent f9d65db5b0
commit fe1a4a6a65
2 changed files with 0 additions and 26 deletions

View File

@@ -153,30 +153,6 @@ func (c *Conn) SetSeeder(t *storage.Torrent, p *storage.Peer) error {
return nil
}
func (c *Conn) IncrementSlots(u *storage.User) error {
c.usersM.Lock()
defer c.usersM.Unlock()
user, ok := c.users[u.Passkey]
if !ok {
return tracker.ErrMissingResource
}
user.Slots++
u.Slots++
return nil
}
func (c *Conn) DecrementSlots(u *storage.User) error {
c.usersM.Lock()
defer c.usersM.Unlock()
user, ok := c.users[u.Passkey]
if !ok {
return tracker.ErrMissingResource
}
user.Slots--
u.Slots--
return nil
}
func (c *Conn) LeecherFinished(t *storage.Torrent, p *storage.Peer) error {
c.torrentsM.Lock()
defer c.torrentsM.Unlock()