From a2240d01aafa5886c0ede39048927cd550422cab Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 16 Jan 2019 17:20:28 +0800 Subject: [PATCH] clear map and ptr after use --- modules/background/tcgplayer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/background/tcgplayer.go b/modules/background/tcgplayer.go index 90f8880..47c0130 100644 --- a/modules/background/tcgplayer.go +++ b/modules/background/tcgplayer.go @@ -104,5 +104,8 @@ func getPriceFromAPI(pool *pool.Pool, api *apiact.TCGPlayer, groupid int) { models.InsertCardPrice(insOpts) + cardMap = nil + prices = nil + return }