Skip to content

Commit

Permalink
use flat output
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalaydrus committed Jan 19, 2024
1 parent bd91cea commit 12d2113
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFP
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/gobeam/stringy v0.0.6 h1:IboItevQArUAYUbjb7xmtGoJfN5Aqpk3/bVCd7JgWe0=
github.com/gobeam/stringy v0.0.6/go.mod h1:W3620X9dJHf2FSZF5fRnWekHcHQjwmCz8ZQ2d1qloqE=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
Expand Down
2 changes: 1 addition & 1 deletion ipfix/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (m *Message) JSONMarshal(b *bytes.Buffer) ([]byte, error) {
m.encodeHeader(b)

// encode data sets
if err := m.encodeDataSet(b); err != nil {
if err := m.encodeDataSetFlat(b); err != nil {
return nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion netflow/v9/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (m *Message) JSONMarshal(b *bytes.Buffer) ([]byte, error) {
m.encodeHeader(b)

// encode data sets
if err := m.encodeDataSet(b); err != nil {
if err := m.encodeDataSetFlat(b); err != nil {
return nil, err
}

Expand Down

0 comments on commit 12d2113

Please sign in to comment.