Skip to content

Commit

Permalink
Update SDK to v1.15.0 (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz authored Jun 8, 2022
1 parent b49280d commit f334c48
Show file tree
Hide file tree
Showing 97 changed files with 126 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
submodules: recursive
- uses: actions/setup-go@v2
with:
go-version: "1.17"
go-version: "1.18"
- name: CI Build
run: make ci-build
2 changes: 1 addition & 1 deletion branch/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// @@@SNIPSTART samples-go-branch-workflow-execution-starter
func main() {
// The client is a heavyweight object that should be created only once per process.
c, err := client.NewClient(client.Options{})
c, err := client.Dial(client.Options{})
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion branch/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// @@@SNIPSTART samples-go-branch-worker-starter
func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cancellation/cancel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func main() {
}

// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cancellation/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {
flag.Parse()

// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cancellation/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// @@@SNIPSTART samples-go-cancellation-worker-starter
func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion child-workflow-continue-as-new/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// @@@SNIPSTART samples-go-cw-cas-workflow-execution-starter
func main() {
// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion child-workflow-continue-as-new/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// @@@SNIPSTART samples-go-cw-cas-worker-starter
func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion child-workflow/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// @@@SNIPSTART samples-go-child-workflow-example-execution-starter
func main() {
// The client is a heavyweight object that should be created only once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion child-workflow/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// @@@SNIPSTART samples-go-child-workflow-example-worker-starter
func main() {
// The client is a heavyweight object that should be created only once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion choice-exclusive/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func main() {
// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion choice-exclusive/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion choice-multi/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func main() {
// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion choice-multi/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion codec-server/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func main() {
// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
// Set DataConverter here to ensure that workflow inputs and results are
// encoded as required.
DataConverter: codecserver.DataConverter,
Expand Down
2 changes: 1 addition & 1 deletion codec-server/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
// Set DataConverter here so that workflow and activity inputs/results will
// be compressed as required.
DataConverter: codecserver.DataConverter,
Expand Down
2 changes: 1 addition & 1 deletion cron/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func main() {
// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cron/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion ctxpropagation/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
}

// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
Interceptors: []interceptor.ClientInterceptor{tracingInterceptor},
ContextPropagators: []workflow.ContextPropagator{ctxpropagation.NewContextPropagator()},
Expand Down
2 changes: 1 addition & 1 deletion ctxpropagation/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func main() {
}

// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
ContextPropagators: []workflow.ContextPropagator{ctxpropagation.NewContextPropagator()},
Interceptors: []interceptor.ClientInterceptor{tracingInterceptor},
Expand Down
2 changes: 1 addition & 1 deletion dsl/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func main() {
}

// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion dsl/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion dynamic/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func main() {
// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion dynamic/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion encryption/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func main() {
// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
// If you intend to use the same encryption key for all workflows you can
// set the KeyID for the encryption encoder like so:
//
Expand Down
2 changes: 1 addition & 1 deletion encryption/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
// If you intend to use the same encryption key for all workflows you can
// set the KeyID for the encryption encoder like so:
//
Expand Down
2 changes: 1 addition & 1 deletion expense/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var (
func main() {
var err error
// The client is a heavyweight object that should be created once per process.
workflowClient, err = client.NewClient(client.Options{
workflowClient, err = client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion expense/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func main() {
// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion expense/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion fileprocessing/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func main() {
// The client is a heavyweight object that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion fileprocessing/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func main() {
// The client and worker are heavyweight objects that should be created once per process.
c, err := client.NewClient(client.Options{
c, err := client.Dial(client.Options{
HostPort: client.DefaultHostPort,
})
if err != nil {
Expand Down
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ require (
github.com/opentracing/opentracing-go v1.2.0
github.com/pborman/uuid v1.2.1
github.com/prometheus/client_golang v1.12.1
github.com/stretchr/testify v1.7.0
github.com/stretchr/testify v1.7.1
github.com/uber-go/tally/v4 v4.1.1
github.com/uber/jaeger-client-go v2.29.1+incompatible
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
go.temporal.io/api v1.7.1-0.20220223032354-6e6fe738916a
go.temporal.io/sdk v1.14.0
go.temporal.io/api v1.8.0
go.temporal.io/sdk v1.15.0
go.temporal.io/sdk/contrib/opentracing v0.1.0
go.temporal.io/sdk/contrib/tally v0.1.0
go.temporal.io/sdk/contrib/tools/workflowcheck v0.0.0-20220331154559-fd0d1eb548eb
go.temporal.io/server v1.15.2
go.uber.org/zap v1.20.0
google.golang.org/grpc v1.44.0
google.golang.org/grpc v1.47.0
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect
gopkg.in/square/go-jose.v2 v2.6.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
gopkg.in/yaml.v3 v3.0.1
)
Loading

0 comments on commit f334c48

Please sign in to comment.