Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Commit

Permalink
Rename stats key to swarm.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen304 committed Jan 13, 2015
1 parent 5ca5105 commit 8c6ccb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/torrentdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Torrent struct {
Category []string
Details []string
Download []string
Stats Stats
Swarm Stats
}

type Stats struct {
Expand Down Expand Up @@ -127,7 +127,7 @@ func (torrentDB *TorrentDB) Insert(btih string, title string, category string, d
Category: []string{category},
Details: []string{details},
Download: []string{download},
Stats: Stats{Seeders: 0, Leechers: 0},
Swarm: Stats{Seeders: 0, Leechers: 0},
})
if err != nil {
return false, errors.New("Something went wrong when trying to insert.")
Expand Down

0 comments on commit 8c6ccb8

Please sign in to comment.