Skip to content

Commit

Permalink
more printing
Browse files Browse the repository at this point in the history
  • Loading branch information
trevleon committed Jun 2, 2024
1 parent 82e1843 commit 5889113
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go/cmd/globalscheduler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ func (s *server) LiveNodesHeartbeat(ctx context.Context) (error) {
func(s *server) SendLiveNodes(ctx context.Context) (error) {
liveNodes := make(map[uint64]bool)
for uid, heartbeat := range s.status {

liveNodes[uid] = time.Since(heartbeat.timeReceived) < LIVE_NODE_TIMEOUT
timeSince := time.Since(heartbeat.timeReceived)
log.Printf("time since heartbeat: %v", timeSince)
liveNodes[uid] = timeSince < LIVE_NODE_TIMEOUT
if _, val := liveNodes[uid]; val {
log.Printf("%v sent as live", uid)
} else {
Expand Down

0 comments on commit 5889113

Please sign in to comment.