moved spray timeout to config
This commit is contained in:
@@ -25,16 +25,17 @@ const (
|
||||
)
|
||||
|
||||
type DemoMatchLoaderConfig struct {
|
||||
Username string
|
||||
Password string
|
||||
AuthCode string
|
||||
Sentry string
|
||||
LoginKey string
|
||||
Db *ent.Client
|
||||
Worker int
|
||||
ApiKey string
|
||||
RateLimit ratelimit.Limiter
|
||||
Cache *cache.Cache
|
||||
Username string
|
||||
Password string
|
||||
AuthCode string
|
||||
Sentry string
|
||||
LoginKey string
|
||||
Db *ent.Client
|
||||
Worker int
|
||||
ApiKey string
|
||||
RateLimit ratelimit.Limiter
|
||||
Cache *cache.Cache
|
||||
SprayTimeout int
|
||||
}
|
||||
|
||||
type DemoMatchLoader struct {
|
||||
@@ -160,7 +161,7 @@ func (d *DemoMatchLoader) Setup(config *DemoMatchLoaderConfig) error {
|
||||
d.parseMap = map[string]bool{}
|
||||
d.parseMapL = new(sync.Mutex)
|
||||
d.cache = config.Cache
|
||||
err := d.dp.Setup(config.Db, config.Worker)
|
||||
err := d.dp.Setup(config.Db, config.Worker, config.SprayTimeout)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user