diff options
| author | mo khan <mo@mokhan.ca> | 2024-06-13 16:36:07 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-06-13 16:36:07 -0600 |
| commit | 0b1daf7b312ef8d44bb63a70d32d812d50ef3ea5 (patch) | |
| tree | 753d43869556406d6b3b6919897835e97d7a7074 /cmd/stanuki/main.go | |
| parent | 2e5b5606660002c70e4f3b86c7f98dee540ca61b (diff) | |
Save each issue in a a go routine
Diffstat (limited to 'cmd/stanuki/main.go')
| -rw-r--r-- | cmd/stanuki/main.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/stanuki/main.go b/cmd/stanuki/main.go index 0588809..4118398 100644 --- a/cmd/stanuki/main.go +++ b/cmd/stanuki/main.go @@ -2,7 +2,6 @@ package main import ( "context" - "fmt" "github.com/xlgmokha/x/pkg/env" "gitlab.com/mokhax/stanuki/pkg/db" @@ -13,7 +12,6 @@ func main() { issues := db.New[*gitlab.Issue]("./db/issues") gl := gitlab.New(context.TODO(), env.Fetch("GITLAB_TOKEN", "")) gl.Group(9970).EachIssue(func(issue *gitlab.Issue) { - fmt.Printf("%v: %v\n", issue.ID, issue.Title) issues.Save(issue) }) } |
