rename package to github.com/tribalwarshelp/cron | change number of updating servers concurrently

This commit is contained in:
Dawid Wysokiński 2020-07-06 11:53:54 +02:00 committed by Kichiyaki
parent f659fc9bc3
commit d90c603aa9
4 changed files with 6 additions and 3 deletions

View File

@ -203,7 +203,7 @@ func (h *handler) updateServersData() {
}
var wg sync.WaitGroup
max := runtime.NumCPU() * 2
max := runtime.NumCPU()
count := 0
for _, server := range servers {

3
go.mod
View File

@ -1,4 +1,4 @@
module github.com/tribalwarshelp/twcron
module github.com/tribalwarshelp/cron
go 1.14
@ -10,6 +10,7 @@ require (
github.com/robfig/cron/v3 v3.0.1
github.com/segmentio/encoding v0.1.14 // indirect
github.com/tribalwarshelp/shared v0.0.0-20200629123803-0cd6cb6f1e87
github.com/tribalwarshelp/twcron v0.0.0-20200629130116-b320263c4502 // indirect
golang.org/x/net v0.0.0-20200625001655-4c5254603344 // indirect
golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 // indirect
google.golang.org/grpc v1.30.0 // indirect

2
go.sum
View File

@ -94,6 +94,8 @@ github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc h1:9lRDQMhESg+zvGYm
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc/go.mod h1:bciPuU6GHm1iF1pBvUfxfsH0Wmnc2VbpgvbI9ZWuIRs=
github.com/tribalwarshelp/shared v0.0.0-20200629123803-0cd6cb6f1e87 h1:TMuZUk0wW+8dXSGVJVLRFFhLONKKYJRnLBFvbb9XTrE=
github.com/tribalwarshelp/shared v0.0.0-20200629123803-0cd6cb6f1e87/go.mod h1:tf+2yTHasV6jAF3V2deZ9slNoCyBzC0fMdTjI7clf6Y=
github.com/tribalwarshelp/twcron v0.0.0-20200629130116-b320263c4502 h1:6sIsm8dw+9qY3mdVJUSaJOfXWcrWxJrlLA8u3uTcADs=
github.com/tribalwarshelp/twcron v0.0.0-20200629130116-b320263c4502/go.mod h1:dLYqb08YNQQUu4KNVm69nf7GOjwM96DoXNmI5CLuBLE=
github.com/vmihailenco/bufpool v0.1.5/go.mod h1:fL9i/PRTuS7AELqAHwSU1Zf1c70xhkhGe/cD5ud9pJk=
github.com/vmihailenco/bufpool v0.1.11 h1:gOq2WmBrq0i2yW5QJ16ykccQ4wH9UyEsgLm6czKAd94=
github.com/vmihailenco/bufpool v0.1.11/go.mod h1:AFf/MOy3l2CFTKbxwt0mp2MwnqjNEs5H/UxrkA5jxTQ=

View File

@ -8,7 +8,7 @@ import (
"github.com/tribalwarshelp/shared/mode"
_cron "github.com/tribalwarshelp/twcron/cron"
_cron "github.com/tribalwarshelp/cron/cron"
"github.com/go-pg/pg/v10"
"github.com/joho/godotenv"