Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
job committed Jul 17, 2021
1 parent ed657dc commit d74e626
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions cmd/rtrdump/rtrdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"net"
"os"
"runtime"
"time"
)

const (
Expand Down Expand Up @@ -102,10 +101,6 @@ func (c *Client) HandlePDU(cs *rtr.ClientSession, pdu rtr.PDU) {
log.Debugf("Received: %v", pdu)
}
case *rtr.PDUEndOfData:
t := time.Now().UTC().UnixNano() / 1000000000
c.Data.Metadata.Generated = int(t)
c.Data.Metadata.Valid = int(t) + int(pdu.RefreshInterval)
c.Data.Metadata.Serial = int(pdu.SerialNumber)
cs.Disconnect()
log.Debugf("Received: %v", pdu)
case *rtr.PDUCacheResponse:
Expand Down
1 change: 0 additions & 1 deletion cmd/rtrmon/rtrmon.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ func (c *Client) Start(id int, ch chan int) {
c.compLock.Lock()
c.vrps = tmpVrpMap
c.lastUpdate = time.Now().UTC()
c.serial = uint32(decoded.Metadata.Serial)
c.compLock.Unlock()
if ch != nil {
ch <- id
Expand Down

0 comments on commit d74e626

Please sign in to comment.