read token from config
This commit is contained in:
@@ -45,9 +45,9 @@ func (handler *TorrentManager) refreshTorrents() {
|
||||
// NewTorrentManager creates a new torrent manager
|
||||
// it will fetch all torrents and their info in the background
|
||||
// and store them in-memory
|
||||
func NewTorrentManager(token string, config config.ConfigInterface) *TorrentManager {
|
||||
func NewTorrentManager(config config.ConfigInterface) *TorrentManager {
|
||||
handler := &TorrentManager{
|
||||
token: token,
|
||||
token: config.GetToken(),
|
||||
workerPool: make(chan bool, 10),
|
||||
config: config,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user