Skip to content

Commit 7f969f8

Browse files
jackcclaude
andcommitted
Rename TraceQueryute to traceExecute
Fix typo and match the unexported naming convention used by every other trace method on the tracer type. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ab52391 commit 7f969f8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pgproto3/frontend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func (f *Frontend) SendExecute(msg *Execute) {
231231
f.wbuf = newBuf
232232

233233
if f.tracer != nil {
234-
f.tracer.TraceQueryute('F', int32(len(f.wbuf)-prevLen), msg)
234+
f.tracer.traceExecute('F', int32(len(f.wbuf)-prevLen), msg)
235235
}
236236
}
237237

pgproto3/trace.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (t *tracer) traceMessage(sender byte, encodedLen int32, msg Message) {
8282
case *ErrorResponse:
8383
t.traceErrorResponse(sender, encodedLen, msg)
8484
case *Execute:
85-
t.TraceQueryute(sender, encodedLen, msg)
85+
t.traceExecute(sender, encodedLen, msg)
8686
case *Flush:
8787
t.traceFlush(sender, encodedLen, msg)
8888
case *FunctionCall:
@@ -260,7 +260,7 @@ func (t *tracer) traceErrorResponse(sender byte, encodedLen int32, msg *ErrorRes
260260
t.writeTrace(sender, encodedLen, "ErrorResponse", nil)
261261
}
262262

263-
func (t *tracer) TraceQueryute(sender byte, encodedLen int32, msg *Execute) {
263+
func (t *tracer) traceExecute(sender byte, encodedLen int32, msg *Execute) {
264264
t.writeTrace(sender, encodedLen, "Execute", func() {
265265
fmt.Fprintf(t.buf, "\t %s %d", traceDoubleQuotedString([]byte(msg.Portal)), msg.MaxRows)
266266
})

0 commit comments

Comments
 (0)