mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 13:47:05 +02:00
Renamed ImportBackend methods to StartImport / FinishImport
This commit is contained in:
parent
14d944c7ad
commit
c13c9175e3
7 changed files with 16 additions and 16 deletions
|
@ -29,7 +29,7 @@ func ProcessListensImports(importer models.ListensImport, results chan models.Li
|
|||
defer close(progress)
|
||||
result := models.ImportResult{}
|
||||
|
||||
err := importer.Init()
|
||||
err := importer.StartImport()
|
||||
if err != nil {
|
||||
handleError(result, err, out, progress)
|
||||
return
|
||||
|
@ -52,7 +52,7 @@ func ProcessListensImports(importer models.ListensImport, results chan models.Li
|
|||
progress <- models.Progress{}.FromImportResult(result)
|
||||
}
|
||||
|
||||
err = importer.Finish()
|
||||
err = importer.FinishImport()
|
||||
if err != nil {
|
||||
handleError(result, err, out, progress)
|
||||
return
|
||||
|
@ -67,7 +67,7 @@ func ProcessLovesImports(importer models.LovesImport, results chan models.LovesR
|
|||
defer close(progress)
|
||||
result := models.ImportResult{}
|
||||
|
||||
err := importer.Init()
|
||||
err := importer.StartImport()
|
||||
if err != nil {
|
||||
handleError(result, err, out, progress)
|
||||
return
|
||||
|
@ -90,7 +90,7 @@ func ProcessLovesImports(importer models.LovesImport, results chan models.LovesR
|
|||
progress <- models.Progress{}.FromImportResult(result)
|
||||
}
|
||||
|
||||
err = importer.Finish()
|
||||
err = importer.FinishImport()
|
||||
if err != nil {
|
||||
handleError(result, err, out, progress)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue