Compare commits
2 Commits
7a5acb5fc3
...
e9e3e02a39
Author | SHA1 | Date | |
---|---|---|---|
e9e3e02a39 | |||
0e126df3db |
10
main.go
10
main.go
@@ -1231,7 +1231,7 @@ func main() {
|
|||||||
go housekeeping()
|
go housekeeping()
|
||||||
|
|
||||||
// populate sitemap
|
// populate sitemap
|
||||||
siteMap = &gositemap.SiteMap{BaseURL: "csgow.tf", MaxURLPerSiteMap: 50000}
|
siteMap = &gositemap.SiteMap{BaseURL: "csgow.tf", MaxURLPerSiteMap: 9000}
|
||||||
freq := gositemap.Hourly
|
freq := gositemap.Hourly
|
||||||
siteMap.AddURL("/matches", nil, &freq, nil)
|
siteMap.AddURL("/matches", nil, &freq, nil)
|
||||||
|
|
||||||
@@ -1323,7 +1323,11 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panicf("Failure listing on %s:%d: %v", l.Host, l.Port, err)
|
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{
|
srv := &http.Server{
|
||||||
ReadTimeout: time.Duration(conf.Csgowtfd.Timeout.Read) * time.Second,
|
ReadTimeout: time.Duration(conf.Csgowtfd.Timeout.Read) * time.Second,
|
||||||
WriteTimeout: time.Duration(conf.Csgowtfd.Timeout.Write) * time.Second,
|
WriteTimeout: time.Duration(conf.Csgowtfd.Timeout.Write) * time.Second,
|
||||||
@@ -1334,7 +1338,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failure serving on %s:%d: %v", l.Host, l.Port, err)
|
log.Fatalf("Failure serving on %s:%d: %v", l.Host, l.Port, err)
|
||||||
}
|
}
|
||||||
}()
|
}(l)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user