Compare commits

...

2 Commits

10
main.go
View File

@@ -1231,7 +1231,7 @@ func main() {
go housekeeping()
// populate sitemap
siteMap = &gositemap.SiteMap{BaseURL: "csgow.tf", MaxURLPerSiteMap: 50000}
siteMap = &gositemap.SiteMap{BaseURL: "csgow.tf", MaxURLPerSiteMap: 9000}
freq := gositemap.Hourly
siteMap.AddURL("/matches", nil, &freq, nil)
@@ -1323,7 +1323,11 @@ func main() {
if err != nil {
log.Panicf("Failure listing on %s:%d: %v", l.Host, l.Port, err)
}
go func() {
go func(l struct {
Socket string
Host string
Port int
}) {
srv := &http.Server{
ReadTimeout: time.Duration(conf.Csgowtfd.Timeout.Read) * time.Second,
WriteTimeout: time.Duration(conf.Csgowtfd.Timeout.Write) * time.Second,
@@ -1334,7 +1338,7 @@ func main() {
if err != nil {
log.Fatalf("Failure serving on %s:%d: %v", l.Host, l.Port, err)
}
}()
}(l)
}
}