From 5458cc84423a5c7b567344a859fed177bb22641b Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Tue, 30 Nov 2021 18:26:06 +0100 Subject: [PATCH] Fix problem with readTimeout. Signed-off-by: Antonio Navarro Perez --- torrent/service.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/torrent/service.go b/torrent/service.go index fcb4a0e..1684de3 100644 --- a/torrent/service.go +++ b/torrent/service.go @@ -33,13 +33,14 @@ type Service struct { 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() return &Service{ - log: l, - s: stats, - c: c, - fss: make(map[string]fs.Filesystem), - cfgLoader: cfg, - db: db, - addTimeout: addTimeout, + log: l, + s: stats, + c: c, + fss: make(map[string]fs.Filesystem), + cfgLoader: cfg, + db: db, + addTimeout: addTimeout, + readTimeout: readTimeout, } }