Răsfoiți Sursa

Update InstanceCrawlPipeline, remove unused variable

Daniel Supernault 3 ani în urmă
părinte
comite
e73cf531cb
1 a modificat fișierele cu 19 adăugiri și 19 ștergeri
  1. 19 19
      app/Jobs/InstancePipeline/InstanceCrawlPipeline.php

+ 19 - 19
app/Jobs/InstancePipeline/InstanceCrawlPipeline.php

@@ -15,29 +15,29 @@ use App\Services\NodeinfoService;
 
 
 class InstanceCrawlPipeline implements ShouldQueue
 class InstanceCrawlPipeline implements ShouldQueue
 {
 {
-    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
+	use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
 
 
-    /**
-     * Create a new job instance.
-     *
-     * @return void
-     */
-    public function __construct()
-    {
-        //
-    }
+	/**
+	 * Create a new job instance.
+	 *
+	 * @return void
+	 */
+	public function __construct()
+	{
+		//
+	}
 
 
-    /**
-     * Execute the job.
-     *
-     * @return void
-     */
-    public function handle()
-    {
-        Instance::whereNull('last_crawled_at')->whereNull('software')->chunk(50, function($instances) use($headers) {
+	/**
+	 * Execute the job.
+	 *
+	 * @return void
+	 */
+	public function handle()
+	{
+		Instance::whereNull('last_crawled_at')->whereNull('software')->chunk(50, function($instances) {
 			foreach($instances as $instance) {
 			foreach($instances as $instance) {
 				FetchNodeinfoPipeline::dispatch($instance)->onQueue('low');
 				FetchNodeinfoPipeline::dispatch($instance)->onQueue('low');
 			}
 			}
 		});
 		});
-    }
+	}
 }
 }