Skip to content

Commit

Permalink
update badge
Browse files Browse the repository at this point in the history
  • Loading branch information
nozo-moto committed Mar 5, 2022
1 parent 7c9a1ee commit 5bc0331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Task_Queue

[![CircleCI](https://circleci.com/gh/nozo-moto/taskqueue.svg?style=svg)](https://circleci.com/gh/nozo-moto/taskqueue)
[![build](https://github.com/nozo-moto/taskqueue/actions/workflows/go.yml/badge.svg)](https://github.com/nozo-moto/taskqueue/actions/workflows/go.yml)

This is task queue worker. I create referencing TaskQueue of GCP.
You can set task's interval time, and retry count.
Expand All @@ -23,7 +23,7 @@ go taskQueue.Run()
err := taskQueue.Add(
func(args ...interface{}) error {
// Get Agument
index, ok := args[0].([]interface{})[0].(int)
index, ok := args[0].([]interface{})[0].(int)
if !ok {
panic("error assation not good")
}
Expand All @@ -32,7 +32,7 @@ err := taskQueue.Add(
return nil
},
3, // Retry Count
index, // Argument
index, // Argument
)

```

0 comments on commit 5bc0331

Please sign in to comment.