rename to cleanup
This commit is contained in:
4
main.go
4
main.go
@@ -17,12 +17,12 @@ func main() {
|
|||||||
BeadsDBPath: "./.pm/db.db",
|
BeadsDBPath: "./.pm/db.db",
|
||||||
StatisticsStoragePath: "./.pm/stats.json",
|
StatisticsStoragePath: "./.pm/stats.json",
|
||||||
}
|
}
|
||||||
svc, cancel, err := service.NewServices(ctx, config)
|
svc, cleanup, err := service.NewServices(ctx, config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error:", err)
|
fmt.Println("Error:", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
defer cancel()
|
defer cleanup()
|
||||||
|
|
||||||
issue := &models.Issue{
|
issue := &models.Issue{
|
||||||
IssueType: models.TypeTask,
|
IssueType: models.TypeTask,
|
||||||
|
|||||||
Reference in New Issue
Block a user