Refactor with ordered maps

This commit is contained in:
Ben Sarmiento
2023-11-10 19:03:07 +01:00
parent 15a0ba95d8
commit b97f859a32
12 changed files with 180 additions and 256 deletions

View File

@@ -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)