File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace RichanFongdasen \GCRWorker ;
44
5- use ErrorException ;
65use Google \Cloud \PubSub \Message ;
76use Kainxspirits \PubSubQueue \Connectors \PubSubConnector ;
87use RichanFongdasen \GCRWorker \Concerns \CreatesPubSubQueue ;
@@ -39,8 +38,6 @@ public function acknowledge(Message $message): void
3938 *
4039 * @param Message $original
4140 *
42- * @throws ErrorException
43- *
4441 * @return Message
4542 */
4643 public function pullFreshMessage (Message $ original ): Message
@@ -59,6 +56,6 @@ public function pullFreshMessage(Message $original): Message
5956 }
6057 }
6158
62- throw new ErrorException ( sprintf ('Failed to pull a PubSub message with id "%s" ' , $ original ->id ()));
59+ abort ( 409 , sprintf ('Failed to pull a PubSub message with id "%s" ' , $ original ->id ()));
6360 }
6461}
You can’t perform that action at this time.
0 commit comments