diff --git a/examples/transaction_scaling/main.go b/examples/transaction_scaling/main.go index b57a91f13..4b8bbe8e4 100644 --- a/examples/transaction_scaling/main.go +++ b/examples/transaction_scaling/main.go @@ -79,7 +79,6 @@ const contractCode = ` func main() { // set up context and flow client ctx := context.Background() - startTime := time.Now() flowClient, err := grpc.NewClient(grpc.TestnetHost) examples.Handle(err) @@ -99,6 +98,8 @@ func main() { txChan <- i } + startTime := time.Now() + var wg sync.WaitGroup // start the workers for i := 0; i < numProposalKeys; i++ {