Skip to content

Commit 69a4b7d

Browse files
committed
fix lint
1 parent e9e0e68 commit 69a4b7d

File tree

1 file changed

+2
-0
lines changed
  • pkg/coordinator/tasks/check_consensus_slot_range

1 file changed

+2
-0
lines changed

pkg/coordinator/tasks/check_consensus_slot_range/task.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ func (t *Task) Execute(ctx context.Context) error {
100100
func (t *Task) runRangeCheck() (checkResult, isLower bool) {
101101
consensusPool := t.ctx.Scheduler.GetServices().ClientPool().GetConsensusPool()
102102
genesis := consensusPool.GetBlockCache().GetGenesis()
103+
103104
if genesis == nil {
104105
t.logger.Errorf("genesis data not available")
105106
return false, true
106107
}
108+
107109
if genesis.GenesisTime.Compare(time.Now()) >= 0 {
108110
return false, true
109111
}

0 commit comments

Comments
 (0)