Fix problem with readTimeout.

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
Antonio Navarro Perez 2021-11-30 18:26:06 +01:00
parent ee476e52ce
commit 5458cc8442

View file

@ -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,
} }
} }