Skip to content

Commit 731ed05

Browse files
committed
gofumpt
1 parent 0151d26 commit 731ed05

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

replication/json_binary.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ func jsonbGetValueEntrySize(isSmall bool) int {
135135
// the common JSON encoding data.
136136
func (e *RowsEvent) decodeJsonBinary(data []byte) ([]byte, error) {
137137
d := jsonBinaryDecoder{
138-
useDecimal: e.useDecimal,
138+
useDecimal: e.useDecimal,
139139
useFloatWithTrailingZero: e.useFloatWithTrailingZero,
140-
ignoreDecodeErr: e.ignoreJSONDecodeErr,
140+
ignoreDecodeErr: e.ignoreJSONDecodeErr,
141141
}
142142

143143
if d.isDataShort(data, 1) {
@@ -153,10 +153,10 @@ func (e *RowsEvent) decodeJsonBinary(data []byte) ([]byte, error) {
153153
}
154154

155155
type jsonBinaryDecoder struct {
156-
useDecimal bool
157-
useFloatWithTrailingZero bool
158-
ignoreDecodeErr bool
159-
err error
156+
useDecimal bool
157+
useFloatWithTrailingZero bool
158+
ignoreDecodeErr bool
159+
err error
160160
}
161161

162162
func (d *jsonBinaryDecoder) decodeValue(tp byte, data []byte) interface{} {

replication/parser.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ type BinlogParser struct {
3535
// used to start/stop processing
3636
stopProcessing uint32
3737

38-
useDecimal bool
38+
useDecimal bool
3939
useFloatWithTrailingZero bool
40-
ignoreJSONDecodeErr bool
41-
verifyChecksum bool
40+
ignoreJSONDecodeErr bool
41+
verifyChecksum bool
4242

4343
rowsEventDecodeFunc func(*RowsEvent, []byte) error
4444

replication/row_event.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -945,11 +945,11 @@ type RowsEvent struct {
945945
Rows [][]interface{}
946946
SkippedColumns [][]int
947947

948-
parseTime bool
949-
timestampStringLocation *time.Location
950-
useDecimal bool
951-
useFloatWithTrailingZero bool
952-
ignoreJSONDecodeErr bool
948+
parseTime bool
949+
timestampStringLocation *time.Location
950+
useDecimal bool
951+
useFloatWithTrailingZero bool
952+
ignoreJSONDecodeErr bool
953953
}
954954

955955
// EnumRowsEventType is an abridged type describing the operation which triggered the given RowsEvent.

0 commit comments

Comments
 (0)