gql_cataclysm
noah metz 2023-07-30 11:29:58 -06:00
parent e34d3ec981
commit b4e6123d4c
1 changed files with 2 additions and 2 deletions

@ -139,11 +139,11 @@ func (node *Node) ClearSignalQueue() {
func SoonestSignal(signals []QueuedSignal) (*QueuedSignal, <-chan time.Time) { func SoonestSignal(signals []QueuedSignal) (*QueuedSignal, <-chan time.Time) {
var soonest_signal *QueuedSignal var soonest_signal *QueuedSignal
var soonest_time time.Time var soonest_time time.Time
for _, 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: ") print("SOONEST: ")
println(signal.Time.String()) println(signal.Time.String())
soonest_signal = &signal soonest_signal = &signals[i]
soonest_time = signal.Time soonest_time = signal.Time
} }
} }