Fix problem with readTimeout.
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
parent
ee476e52ce
commit
5458cc8442
1 changed files with 8 additions and 7 deletions
|
@ -33,13 +33,14 @@ type Service struct {
|
||||||
func NewService(cfg loader.Loader, db loader.LoaderAdder, stats *Stats, c *torrent.Client, addTimeout, readTimeout int) *Service {
|
func NewService(cfg loader.Loader, db loader.LoaderAdder, stats *Stats, c *torrent.Client, addTimeout, readTimeout int) *Service {
|
||||||
l := log.Logger.With().Str("component", "torrent-service").Logger()
|
l := log.Logger.With().Str("component", "torrent-service").Logger()
|
||||||
return &Service{
|
return &Service{
|
||||||
log: l,
|
log: l,
|
||||||
s: stats,
|
s: stats,
|
||||||
c: c,
|
c: c,
|
||||||
fss: make(map[string]fs.Filesystem),
|
fss: make(map[string]fs.Filesystem),
|
||||||
cfgLoader: cfg,
|
cfgLoader: cfg,
|
||||||
db: db,
|
db: db,
|
||||||
addTimeout: addTimeout,
|
addTimeout: addTimeout,
|
||||||
|
readTimeout: readTimeout,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue