Skip to content

Commit 896bcc8

Browse files
committed
Add retry
Default to 5. Maybe make an option in the future.
1 parent de4db1f commit 896bcc8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ func main() {
8484
var jsonRoot string
8585
var timeout int64
8686
var pageSize int
87-
var options []shopify.Option
8887
var client *shopify.Client
8988

89+
options := []shopify.Option{shopify.WithRetry(5)}
90+
9091
flag.Usage = func() {
9192
exitFailure(fmt.Sprintf(usage, strings.Join(exportformat.JSONRootProperties, ", ")), 2)
9293
}

0 commit comments

Comments
 (0)