Persist metadata to DB, poll download worker, metadata service layer
This commit is contained in:
@@ -8,6 +8,14 @@ import (
|
||||
"homelab.lan/music-agregator/internal/config"
|
||||
)
|
||||
|
||||
func MustNewTorrentClient(cfg config.Config) TorrentClient {
|
||||
client, err := NewTorrentClient(cfg)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("failed to create torrent client: %v", err))
|
||||
}
|
||||
return client
|
||||
}
|
||||
|
||||
func NewTorrentClient(cfg config.Config) (TorrentClient, error) {
|
||||
var client TorrentClient
|
||||
|
||||
|
||||
Reference in New Issue
Block a user