Skip to content

Commit

Permalink
chore: os.SEEK_CUR has been deprecated since Go 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Jul 17, 2023
1 parent 7926ab7 commit 366a841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (rcvr *Receiver) Run() {
// Make a new LogMessage
var logMsg protocol.LogMessage
logMsg.Time = time.Now()
logMsg.Offset, _ = sampleFile.Seek(0, os.SEEK_CUR)
logMsg.Offset, _ = sampleFile.Seek(0, io.SeekCurrent)
logMsg.Length = sampleBuf.Len()
logMsg.Type = msg.MsgType()
logMsg.Message = msg
Expand Down

0 comments on commit 366a841

Please sign in to comment.