Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
chilagrow committed Jul 26, 2024
1 parent 025149f commit 9214059
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions op_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ func (msg *OpMsg) RawSection0() wirebson.RawDocument {

// RawSections1 returns the value of all sections with kind 1.
func (msg *OpMsg) RawSections1() []wirebson.RawDocument {
var seq []wirebson.RawDocument
var docs []wirebson.RawDocument

for _, s := range msg.Sections() {
switch s.kind {
case 1:
for _, d := range s.documents {
seq = append(seq, d)
docs = append(docs, d)
}
}
}

return seq
return docs
}

// RawSections returns the value of section with kind 0 and the value of all sections with kind 1.
Expand Down

0 comments on commit 9214059

Please sign in to comment.