Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Vicent Marti <vmg@strn.cat>
  • Loading branch information
vmg committed Nov 21, 2024
1 parent d4ea730 commit 984f5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/mysql/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ func (buf *MemBufReader) ReadPacket(packetLen int, r io.Reader) ([]byte, error)
case ErrPacket, EOFPacket:
newbuf := defaultMembufPool.Get(0)
if len(*newbuf) < packetLen {
return nil, vterrors.Errorf(vtrpcpb.Code_RESOURCE_EXHAUSTED, "ReadPacket(%s): too large", packetLen)
return nil, vterrors.Errorf(vtrpcpb.Code_RESOURCE_EXHAUSTED, "ReadPacket(%v): too large", packetLen)
}

copy(*newbuf, target)
Expand Down

0 comments on commit 984f5e1

Please sign in to comment.