chore: simplify
This commit is contained in:
parent
afb56630ee
commit
3a7da709f6
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ func (t *Planner) plan(rates api.Rates, requiredDuration time.Duration, targetTi
|
|||
|
||||
for _, source := range rates {
|
||||
// slot not relevant
|
||||
if source.Start.After(targetTime) || source.Start.Equal(targetTime) || source.End.Before(t.clock.Now()) {
|
||||
if !(source.End.After(t.clock.Now()) && source.Start.Before(targetTime)) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue