]> Cypherpunks repositories - gostls13.git/commit
database/sql: simplify retry logic when the connection is bad
authorJinzhu <wosmvp@gmail.com>
Mon, 5 Sep 2022 09:02:11 +0000 (09:02 +0000)
committerDaniel Theophanes <kardianos@gmail.com>
Wed, 7 Sep 2022 14:33:56 +0000 (14:33 +0000)
commit0752f4a12cfd212ed5a5fdfc8696811d89b12acf
treea4337e68a37c4545b8da0932b89845b56c9d7ddf
parent88149ed43e50325f3200b580be400c91ed01aaac
database/sql: simplify retry logic when the connection is bad

Simplify retry logic when got bad connection

Change-Id: I92494c6c020576ec01bc4868334ee920ded7aa57
GitHub-Last-Rev: 7499b0c9419a31c9adce6d5096a1924aa3612f1d
GitHub-Pull-Request: golang/go#54043
Reviewed-on: https://go-review.googlesource.com/c/go/+/419182
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
Run-TryBot: hopehook <hopehook@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/database/sql/sql.go