From 8c6ccb854d35601bb3035e0ef610595bb1a3a559 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Tue, 13 Jan 2015 01:09:59 -0500 Subject: [PATCH] Rename stats key to swarm. --- api/torrentdb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/torrentdb.go b/api/torrentdb.go index 7fd2060..884c4f8 100644 --- a/api/torrentdb.go +++ b/api/torrentdb.go @@ -20,7 +20,7 @@ type Torrent struct { Category []string Details []string Download []string - Stats Stats + Swarm Stats } type Stats struct { @@ -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.")