client-go
client-go copied to clipboard
why txn Begin() interface does not support context param which be used to set timeout
problems when my program call the Begin function, it would stalls if tikv services not working, how can I set the timeout.
file: client-go/[email protected]/tikv/txn.go // Begin a global transaction. func (s *KVStore) Begin() (*KVTxn, error) { return s.BeginWithOption(DefaultStartTSOption()) }
Anyone know how to solve the problem.
Hi @luohaixiannz we are working on it. Please wait for v2.0.0 GA version :)
ok, thank you
How is this feature going on? We need this timeout configuration when use Begin().