removed prints

gql_cataclysm v0.2.7
noah metz 2023-07-30 11:49:35 -06:00
parent b4e6123d4c
commit 4e31a6763d
1 changed files with 0 additions and 9 deletions

@ -141,23 +141,14 @@ func SoonestSignal(signals []QueuedSignal) (*QueuedSignal, <-chan time.Time) {
var soonest_time time.Time var soonest_time time.Time
for i, signal := range(signals) { for i, signal := range(signals) {
if signal.Time.Compare(soonest_time) == -1 || soonest_signal == nil { if signal.Time.Compare(soonest_time) == -1 || soonest_signal == nil {
print("SOONEST: ")
println(signal.Time.String())
soonest_signal = &signals[i] soonest_signal = &signals[i]
soonest_time = signal.Time soonest_time = signal.Time
} }
} }
if soonest_signal != nil { if soonest_signal != nil {
print("QUEUE: ")
print(fmt.Sprintf("%+v", signals))
print(" - SOONEST: ")
print(soonest_signal.Time.String())
print(" : ")
println(soonest_signal.Signal.Type())
return soonest_signal, time.After(time.Until(soonest_signal.Time)) return soonest_signal, time.After(time.Until(soonest_signal.Time))
} else { } else {
println("NONE_QUEUED")
return nil, nil return nil, nil
} }
} }