From 5f4f63cc442195917234d909947a9058c6ccef70 Mon Sep 17 00:00:00 2001 From: Justin Li Date: Wed, 16 Jul 2014 14:00:45 -0400 Subject: [PATCH] Fix go vet suggestions --- drivers/tracker/routines.go | 2 +- http/announce_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tracker/routines.go b/drivers/tracker/routines.go index 3c69b39..ec50692 100644 --- a/drivers/tracker/routines.go +++ b/drivers/tracker/routines.go @@ -26,7 +26,7 @@ func purgeTorrents(p Pool, threshold time.Duration, interval time.Duration) { err = conn.PurgeInactiveTorrents(before) if err != nil { - glog.Errorf("Error purging torrents: ", err) + glog.Errorf("Error purging torrents: %s", err) } } } diff --git a/http/announce_test.go b/http/announce_test.go index 3295c3a..5027350 100644 --- a/http/announce_test.go +++ b/http/announce_test.go @@ -80,7 +80,7 @@ func TestTorrentPurging(t *testing.T) { } if status != http.StatusOK { - t.Fatal("expected torrent to exist (got %s)", http.StatusText(status)) + t.Fatalf("expected torrent to exist (got %s)", http.StatusText(status)) } // Remove seeder.