reduced urls in sitemaps to 5k
This commit is contained in:
4
main.go
4
main.go
@@ -1206,7 +1206,7 @@ func main() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
rL = rate.NewLimiter(rate.Limit(conf.Steam.RatePerSecond), 100) //nolint:gomnd
|
rL = rate.NewLimiter(rate.Limit(conf.Steam.RatePerSecond), 100) //nolint:gomnd
|
||||||
shareCodeRL = rate.NewLimiter(rate.Limit(0.2), 1)
|
shareCodeRL = rate.NewLimiter(rate.Limit(0.2), 1) //nolint:gomnd
|
||||||
|
|
||||||
// setup GC
|
// setup GC
|
||||||
err = demoLoader.Setup(&csgo.DemoMatchLoaderConfig{
|
err = demoLoader.Setup(&csgo.DemoMatchLoaderConfig{
|
||||||
@@ -1231,7 +1231,7 @@ func main() {
|
|||||||
go housekeeping()
|
go housekeeping()
|
||||||
|
|
||||||
// populate sitemap
|
// populate sitemap
|
||||||
siteMap = &gositemap.SiteMap{BaseURL: "csgow.tf", MaxURLPerSiteMap: 10000}
|
siteMap = &gositemap.SiteMap{BaseURL: "csgow.tf", MaxURLPerSiteMap: 5000}
|
||||||
freq := gositemap.Hourly
|
freq := gositemap.Hourly
|
||||||
siteMap.AddURL("/matches", nil, &freq, nil)
|
siteMap.AddURL("/matches", nil, &freq, nil)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user