Skip to content

Commit

Permalink
Upgrade to 1.6.0 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng committed Nov 29, 2023
1 parent 004dcd2 commit 993a9a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.18
require (
github.com/gin-gonic/gin v1.8.2
github.com/golang/mock v1.6.0
github.com/indeedeng/iwf-golang-sdk v1.4.2
github.com/indeedeng/iwf-golang-sdk v1.6.0
github.com/stretchr/testify v1.8.1
github.com/urfave/cli v1.22.10
)
Expand All @@ -18,7 +18,6 @@ require (
github.com/go-playground/universal-translator v0.18.0 // indirect
github.com/go-playground/validator/v10 v10.11.1 // indirect
github.com/goccy/go-json v0.9.11 // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
Expand All @@ -29,6 +28,7 @@ require (
github.com/russross/blackfriday/v2 v2.0.1 // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
github.com/ugorji/go/codec v1.2.7 // indirect
go.uber.org/mock v0.3.0 // indirect
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 // indirect
golang.org/x/net v0.4.0 // indirect
golang.org/x/sys v0.3.0 // indirect
Expand Down
7 changes: 4 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+Licev
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/indeedeng/iwf-golang-sdk v1.4.2 h1:7muuOBEE3JvPIYgZLKjyEftFpbMa8nwNiIuIXLtflvM=
github.com/indeedeng/iwf-golang-sdk v1.4.2/go.mod h1:zkFdB7liDxpeIOYKwvLaOc/kr9ixaOdwn1p4upY2h7A=
github.com/indeedeng/iwf-golang-sdk v1.6.0 h1:1F/4Jvz1OVpJHMSDWtyDzaSzGvcaYX7Hu67TXgD7oxI=
github.com/indeedeng/iwf-golang-sdk v1.6.0/go.mod h1:DnJN2x4H/wFLDEjQcyD0Br4OkVuKQK9nDgm7Nb7byIo=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
Expand Down Expand Up @@ -74,6 +73,8 @@ github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95
github.com/urfave/cli v1.22.10 h1:p8Fspmz3iTctJstry1PYS3HVdllxnEzTEsgIgtxTrCk=
github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
go.uber.org/mock v0.3.0 h1:3mUxI1No2/60yUYax92Pt8eNOEecx2D3lcXZh2NEZJo=
go.uber.org/mock v0.3.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 h1:0es+/5331RGQPcXlMfP+WrnIIS6dNnNRe0WB02W0F4M=
Expand Down
4 changes: 2 additions & 2 deletions workflows/engagement/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ func (n notifyExternalSystemState) Execute(ctx iwf.WorkflowContext, input iwf.Ob
// GetStateOptions customize the state options
// By default, all state execution will retry infinitely (until workflow timeout).
// This may not work for some dependency as we may want to retry for only a certain times
func (n notifyExternalSystemState) GetStateOptions() *iwfidl.WorkflowStateOptions {
return &iwfidl.WorkflowStateOptions{
func (n notifyExternalSystemState) GetStateOptions() *iwf.StateOptions {
return &iwf.StateOptions{
ExecuteApiRetryPolicy: &iwfidl.RetryPolicy{
BackoffCoefficient: iwfidl.PtrFloat32(2),
MaximumAttempts: iwfidl.PtrInt32(100),
Expand Down

0 comments on commit 993a9a5

Please sign in to comment.