Skip to content

Commit

Permalink
fix global transation time out (apache#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
luky116 authored Sep 6, 2022
1 parent 0db6531 commit 5da5904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tm/transaction_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func Begin(ctx context.Context, name string) context.Context {
}

// todo timeout should read from config
err := GetGlobalTransactionManager().Begin(ctx, tx, 60000*30, name)
err := GetGlobalTransactionManager().Begin(ctx, tx, time.Second*30, name)
if err != nil {
panic(fmt.Sprintf("transactionTemplate: begin transaction failed, error %v", err))
}
Expand Down

0 comments on commit 5da5904

Please sign in to comment.