Fix torrent handler

Former-commit-id: 2bf1e2e21137e4020d2ace31e4560e9a97684403
This commit is contained in:
bel
2019-06-26 17:41:19 -06:00
parent 46fe312222
commit cfea265312
3 changed files with 14 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ func fakeRSSServer() *httptest.Server {
func TestMainLoopCtx(t *testing.T) {
ctx, can := context.WithCancel(context.Background())
can()
c := Config{
c := &Config{
interval: time.Hour,
ctx: ctx,
}