diff options
author | Jordan <me@jordan.im> | 2022-03-24 12:11:06 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2022-03-24 12:11:06 -0700 |
commit | 8b86f4fd05f522350a1f86ed531b6e8f568c1813 (patch) | |
tree | 4a5cb1585e79a95c5da31ebc52e5aa0e0528730b | |
parent | 20d95915298391ea05054238c5b13337499b7af4 (diff) | |
download | crawl-8b86f4fd05f522350a1f86ed531b6e8f568c1813.tar.gz crawl-8b86f4fd05f522350a1f86ed531b6e8f568c1813.zip |
crawler: rm temporary body store once processed in advance of defer
-rw-r--r-- | crawler.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -266,6 +266,7 @@ func (c *Crawler) urlHandler(queue <-chan queuePair) { if httpErr == nil { httpResp.Body.Close() // nolint } + os.Remove(tmpFile.Name()) wb := new(leveldb.Batch) switch err { |