Remove unnecessary passing of cache by ref
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user