From 79c736627d9df22f97b0f172bcd1123e3bee2c44 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 30 Nov 2016 15:03:40 +0000 Subject: [PATCH] Remove the http cache temporarily whilst debugging memory leaks --- src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go b/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go index ccc9885..737d058 100644 --- a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go +++ b/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go @@ -11,8 +11,6 @@ import ( "time" log "github.com/Sirupsen/logrus" - "github.com/die-net/lrucache" - "github.com/gregjones/httpcache" "github.com/matrix-org/go-neb/database" "github.com/matrix-org/go-neb/matrix" "github.com/matrix-org/go-neb/polling" @@ -437,9 +435,9 @@ func readFeed(feedURL string) (*gofeed.Feed, error) { } func init() { - lruCache := lrucache.New(1024*1024*20, 0) // 20 MB cache, no max-age + // lruCache := lrucache.New(1024*1024*20, 0) // 20 MB cache, no max-age cachingClient = &http.Client{ - Transport: userAgentRoundTripper{httpcache.NewTransport(lruCache)}, + Transport: userAgentRoundTripper{http.DefaultTransport}, // httpcache.NewTransport(lruCache) } types.RegisterService(func(serviceID, serviceUserID, webhookEndpointURL string) types.Service { r := &Service{