Skip to content

Commit 0c4f8fb

Browse files
ndyakovCopilot
andauthored
Update internal/pool/buffer_size_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6ad9a67 commit 0c4f8fb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/pool/buffer_size_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ var _ = Describe("Buffer Size Configuration", func() {
128128
// conversions are valid. If the struct layouts do not match exactly, this can
129129
// cause runtime panics or incorrect memory access due to invalid pointer dereferencing.
130130
func getWriterBufSizeUnsafe(cn *pool.Conn) int {
131-
// Import required for atomic types
132-
type atomicBool struct{ _ uint32 }
133-
type atomicInt64 struct{ _ int64 }
134-
135131
cnPtr := (*struct {
136132
id uint64 // First field in pool.Conn
137133
usedAt int64 // Second field (atomic)

0 commit comments

Comments
 (0)