We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b770ab1 commit dc03d5dCopy full SHA for dc03d5d
http/controller/api/index.go
@@ -56,7 +56,7 @@ func (i *Index) Heartbeat(c *gin.Context) {
56
return
57
}
58
//如果在40s以内则不更新
59
- if time.Now().Unix()-peer.LastOnlineTime > 40 {
+ if time.Now().Unix()-peer.LastOnlineTime >= 30 {
60
upp := &model.Peer{RowId: peer.RowId, LastOnlineTime: time.Now().Unix(), LastOnlineIp: c.ClientIP()}
61
service.AllService.PeerService.Update(upp)
62
0 commit comments