Skip to content

Commit

Permalink
always set power target to up
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Feb 20, 2025
1 parent 705bf25 commit ffa54e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/registrar_gateway/registrar_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ func (r *registrarGateway) GetNodes(farmID uint32) (nodeIDs []uint32, err error)
func (r *registrarGateway) GetPowerTarget() (power substrate.NodePower, err error) {
// log.Trace().Str("method", "GetPowerTarget").Uint32("node id", uint32(g.nodeID)).Msg("method called")
// return g.sub.GetPowerTarget(uint32(g.nodeID))
power = substrate.NodePower{
State: substrate.PowerState{IsUp: true},
Target: substrate.Power{IsUp: true},
}

return
}

Expand Down

0 comments on commit ffa54e5

Please sign in to comment.