Refactor with ordered maps
This commit is contained in:
@@ -37,7 +37,7 @@ func main() {
|
||||
|
||||
cache := expirable.NewLRU[string, string](1e4, nil, time.Hour)
|
||||
|
||||
torrentMgr := torrent.NewTorrentManager(config, cache, db)
|
||||
torrentMgr := torrent.NewTorrentManager(config, db)
|
||||
|
||||
mux := http.NewServeMux()
|
||||
net.Router(mux, config, torrentMgr, cache)
|
||||
|
||||
Reference in New Issue
Block a user