Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
Ye Li committed Nov 21, 2017
1 parent 823765c commit 624f3ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package config
import (
"fmt"
"io/ioutil"
"flag"
"os"

"gopkg.in/yaml.v2"
Expand All @@ -20,7 +19,6 @@ type Config struct {
}

var Monitor Config
var config_path = flag.String("conf", "config.yaml", "config file")

func Load(path string) {
if _, err := os.Stat(path); os.IsNotExist(err) {
Expand All @@ -39,4 +37,4 @@ func Load(path string) {
fmt.Printf("configure file format error, %s\n", err.Error())
os.Exit(-1)
}
}
}

0 comments on commit 624f3ed

Please sign in to comment.