[release-11.2.8] Chore: Bump Go version to 1.23.7 (#101294)
* Chore: Bump Go version to 1.23.7 * Chore: Bump golangci-lint version to match Go version * Chore: Run yarn prettier:write * Chore: Bump godeltaprof to v0.1.8 to fix start-up * Chore: Fix wire updated error fixture * Chore: Fix OpenAPI spec diffs * Chore: Fix new linting errors from Go upgrade
This commit is contained in:
@@ -41,7 +41,7 @@ func (rs *ReplStore) DB() *SQLStore {
|
||||
// ReadReplica returns the read-only SQLStore. If no read replica is configured,
|
||||
// it returns the main SQLStore.
|
||||
func (rs *ReplStore) ReadReplica() *SQLStore {
|
||||
if rs.repls == nil || len(rs.repls) == 0 {
|
||||
if len(rs.repls) == 0 {
|
||||
rs.log.Debug("ReadReplica not configured, using main SQLStore")
|
||||
return rs.SQLStore
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user