Skip to content

Commit d7e57a1

Browse files
authored
Merge pull request gocolly#859 from knyghte/patch-1
CacheExpiration should be copied when cloned
2 parents e5ccb79 + 3339184 commit d7e57a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

colly.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,7 @@ func (c *Collector) Clone() *Collector {
14221422
AllowedDomains: c.AllowedDomains,
14231423
AllowURLRevisit: c.AllowURLRevisit,
14241424
CacheDir: c.CacheDir,
1425+
CacheExpiration: c.CacheExpiration,
14251426
DetectCharset: c.DetectCharset,
14261427
DisallowedDomains: c.DisallowedDomains,
14271428
ID: atomic.AddUint32(&collectorCounter, 1),

0 commit comments

Comments
 (0)