From b4e6123d4cbdac9cc7a14b39d52475cabe1570db Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 30 Jul 2023 11:29:58 -0600 Subject: [PATCH] test --- node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node.go b/node.go index b70d068..d412ee8 100644 --- a/node.go +++ b/node.go @@ -139,11 +139,11 @@ func (node *Node) ClearSignalQueue() { func SoonestSignal(signals []QueuedSignal) (*QueuedSignal, <-chan time.Time) { var soonest_signal *QueuedSignal var soonest_time time.Time - for _, signal := range(signals) { + for i, signal := range(signals) { if signal.Time.Compare(soonest_time) == -1 || soonest_signal == nil { print("SOONEST: ") println(signal.Time.String()) - soonest_signal = &signal + soonest_signal = &signals[i] soonest_time = signal.Time } }