Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
owner888 committed Oct 9, 2020
2 parents d04f35e + 6be25a0 commit c4f2e27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/phpspider.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,12 @@ public function __construct($configs = array())
self::$tasknum = $configs['tasknum'];
}

if (isset($configs['tasknum']) && $configs['tasknum'] > 1 && !isset($configs['queue_config'])){
$msg = "Please configure parameters to enable multi-process 'queue_config'";
log::error($msg);
exit;
}

// 是否设置了保留运行状态
if (isset($configs['save_running_state']))
{
Expand Down
8 changes: 8 additions & 0 deletions test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package main

import "fmt"

func main() {
fmt.Println("vim-go")
fmt
}

0 comments on commit c4f2e27

Please sign in to comment.