Skip to content

Commit

Permalink
removing unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Jan 22, 2025
1 parent 37c9c4f commit 685adce
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,6 @@ func (c *ClientConn) CheckHealth(ctx context.Context, service string) (bool, err
return false, fmt.Errorf("health check failed: %w", err)
}

c.mu.Lock()

// Store any block details we received
if details := header.Get("block-details"); len(details) > 0 {
c.lastHealthDetails = details[0]
c.lastHealthCheck = time.Now()
log.Printf("Health check details updated for %s: %s", c.addr, details[0])
}
c.mu.Unlock()

return resp.Status == grpc_health_v1.HealthCheckResponse_SERVING, nil
}

Expand Down

0 comments on commit 685adce

Please sign in to comment.