Remove unnecessary passing of cache by ref

This commit is contained in:
Ben Sarmiento
2023-11-29 00:48:08 +01:00
parent 7badbc50dc
commit 81aba99168
5 changed files with 11 additions and 15 deletions

View File

@@ -73,7 +73,7 @@ func main() {
}()
mux := http.NewServeMux()
net.Router(mux, getfile, config, torrentMgr, cache, log.Named("net"))
net.Router(mux, getfile, config, torrentMgr, log.Named("net"))
addr := fmt.Sprintf("%s:%s", config.GetHost(), config.GetPort())
server := &http.Server{Addr: addr, Handler: mux}