Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu committed Dec 16, 2024
1 parent 9224a6a commit 0341367
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,19 @@ func (m *MessageOpt) ContentTotalSize() int {
}

func (m *MessageOpt) StartTime() uint64 {
return m.HeaderBuffer().FirstSocketBuffer().StartTime()
socketBuffer := m.HeaderBuffer().FirstSocketBuffer()
if socketBuffer == nil {
return 0
}
return socketBuffer.StartTime()
}

func (m *MessageOpt) EndTime() uint64 {
return m.BodyBuffer().LastSocketBuffer().EndTime()
socketBuffer := m.BodyBuffer().LastSocketBuffer()
if socketBuffer == nil {
return m.StartTime()
}
return socketBuffer.EndTime()
}

func (m *MessageOpt) Direction() enums.SocketDataDirection {
Expand Down

0 comments on commit 0341367

Please sign in to comment.