style(database): fix gofmt comment indentation in concurrent_test.go

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
カン 2026-04-28 10:50:47 +09:00 committed by 康厚超
parent 545f5a3672
commit de4d40a25c

View file

@ -24,6 +24,7 @@ import (
// occur at all. // occur at all.
// //
// Chain of proof: // Chain of proof:
//
// TestConcurrentWrites/with_fix_* proves SetMaxOpenConns(1) fixes the bug. // TestConcurrentWrites/with_fix_* proves SetMaxOpenConns(1) fixes the bug.
// TestInitDBConcurrencyConfig/single_connection_pool proves InitDB calls it. // TestInitDBConcurrencyConfig/single_connection_pool proves InitDB calls it.
// Therefore InitDB fixes the bug. // Therefore InitDB fixes the bug.
@ -63,10 +64,12 @@ func TestInitDBConcurrencyConfig(t *testing.T) {
// The ONLY variable that differs between the two sub-tests is MaxOpenConns. // The ONLY variable that differs between the two sub-tests is MaxOpenConns.
// //
// Without fix (MaxOpenConns=2): // Without fix (MaxOpenConns=2):
//
// conn1 acquires the SQLite write lock; conn2 is a separate connection that // conn1 acquires the SQLite write lock; conn2 is a separate connection that
// immediately tries to write and fails because it cannot wait out the lock. // immediately tries to write and fails because it cannot wait out the lock.
// //
// With fix (MaxOpenConns=1): // With fix (MaxOpenConns=1):
//
// conn2 cannot be acquired from the pool while conn1 is in use, so it // conn2 cannot be acquired from the pool while conn1 is in use, so it
// blocks at the Go pool level instead of racing at the SQLite level. // blocks at the Go pool level instead of racing at the SQLite level.
// Once conn1 is released, conn2 gets the connection and writes without error. // Once conn1 is released, conn2 gets the connection and writes without error.