refactor server startup into jobs

This commit is contained in:
sentriz
2020-04-18 19:32:51 +01:00
parent 64d0aee8dc
commit 1ff5845a02
15 changed files with 257 additions and 151 deletions

View File

@@ -57,7 +57,7 @@ type Scanner struct {
seenTracksErr int // n tracks we we couldn't scan
}
func New(db *db.DB, musicPath string) *Scanner {
func New(musicPath string, db *db.DB) *Scanner {
return &Scanner{
db: db,
musicPath: musicPath,