We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9d884 commit 30bd427Copy full SHA for 30bd427
README.md
@@ -46,7 +46,7 @@ import (
46
)
47
48
func main() {
49
- client := workflow.NewClient("<QSTASH_TOKEN>")
+ client, err := workflow.NewClient("<QSTASH_TOKEN>")
50
}
51
```
52
@@ -65,7 +65,7 @@ import (
65
66
67
68
- client := workflow.NewClientWithEnv()
+ client, err := workflow.NewClientWithEnv()
69
70
71
#### Using a custom HTTP client
@@ -80,11 +80,10 @@ import (
80
81
82
83
- opts := workflow.Options{
84
- Token: "<QSTASH_TOKEN>",
85
- Client: &http.Client{},
86
- }
87
- client := workflow.NewClientWith(opts)
+ client, err := workflow.NewClientWith(workflow.Options{
+ Token: "<QSTASH_TOKEN>",
+ Client: &http.Client{},
+ })
88
89
90
0 commit comments