Skip to content

Commit

Permalink
Remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Oct 7, 2023
1 parent c4fce7f commit b931b8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test:

staticcheck:
@printf $(COLOR) "Run static check..."
@go install honnef.co/go/tools/cmd/staticcheck@2022.1.3
@go install honnef.co/go/tools/cmd/staticcheck
@staticcheck ./...

errcheck:
Expand All @@ -51,4 +51,3 @@ clean:
rm -rf bin

ci-build: staticcheck errcheck workflowcheck bins test
GO111MODULE=off go get -u honnef.co/go/tools/cmd/staticcheck
6 changes: 3 additions & 3 deletions temporal-fixtures/largepayload/activities.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package largepayload

import (
"context"
"math/rand"
"crypto/rand"

"go.temporal.io/sdk/activity"
)
Expand All @@ -19,8 +19,8 @@ func (a *Activities) CreateLargeResultActivity(ctx context.Context, sizeBytes in
logger.Info("Creating large result payload...", sizeBytes)

token := make([]byte, sizeBytes)
rand.Read(token)
return token, nil
_, err := rand.Read(token)
return token, err
}

func (a *Activities) ProcessLargeInputActivity(ctx context.Context, input []byte) error {
Expand Down
4 changes: 2 additions & 2 deletions temporal-fixtures/largepayload/starter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"context"
"crypto/rand"
"log"
"math/rand"
"strconv"

"github.com/pborman/uuid"
Expand All @@ -29,7 +29,7 @@ func main() {
id := uuid.New()[0:4]

memoToken := make([]byte, PayloadSize)
rand.Read(memoToken)
_, _ = rand.Read(memoToken)

i := 1
for i <= NumberOfWorkflows {
Expand Down

0 comments on commit b931b8f

Please sign in to comment.