Skip to content

Commit

Permalink
修改init逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
iikira committed Dec 12, 2017
1 parent 2ea4a32 commit a2fe341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ type PCSConfig struct {
MaxParallel int `json:"max_parallel"`
}

func init() {
// Init 初始化配置
func Init() {
// 检查配置
cfg, err := loadConfig()
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func init() {
}
}
os.Chdir(folderPath)

pcsconfig.Init()
}

func main() {
Expand Down

0 comments on commit a2fe341

Please sign in to comment.