From 277ce1b107f11d9f45c1f17bb525c2c046694df2 Mon Sep 17 00:00:00 2001 From: Nick Garfield Date: Fri, 14 Oct 2022 16:19:17 -0500 Subject: [PATCH] Add named QueueBusy error to the kickoff instruction --- programs/queue/src/instructions/queue_kickoff.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/queue/src/instructions/queue_kickoff.rs b/programs/queue/src/instructions/queue_kickoff.rs index 20a505915..aecd868bf 100644 --- a/programs/queue/src/instructions/queue_kickoff.rs +++ b/programs/queue/src/instructions/queue_kickoff.rs @@ -18,7 +18,7 @@ pub struct QueueKickoff<'info> { ], bump, constraint = !queue.paused @ ClockworkError::QueuePaused, - constraint = queue.next_instruction.is_none() + constraint = queue.next_instruction.is_none() @ ClockworkError::QueueBusy, )] pub queue: Box>,