From f0ec7833d7bc955de051c3d832078db47d2e7006 Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Mon, 16 Sep 2019 21:44:06 +0300 Subject: [PATCH] Some comments --- src/queue.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue.cr b/src/queue.cr index 9830556..262b939 100644 --- a/src/queue.cr +++ b/src/queue.cr @@ -11,8 +11,8 @@ class App::Queue @data = [] of Item end - # Plan finishing of *command* at time *ts* def push(ts : Int32, value : Command) + # very unoptimal algo @data.push(Item.new(ts, value)) @data.sort! do |a, b| b.ts <=> a.ts