Skip to content

Commit 4bc197e

Browse files
committed
fix lint
1 parent bcd5350 commit 4bc197e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-registrar/pkg/server/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ func (s *Server) uptimeReportHandler(c *gin.Context) {
482482
report := &db.UptimeReport{
483483
NodeID: id,
484484
Duration: time.Duration(req.Uptime) * time.Second,
485-
Timestamp: time.Unix(int64(req.Timestamp), 0).UTC(),
485+
Timestamp: time.Unix(req.Timestamp, 0).UTC(),
486486
}
487487

488488
// Create report record and Update node LastSeen(the timestamp of the last report)

0 commit comments

Comments
 (0)