diff options
author | Daniel Langesten <daniel.langest@gmail.com> | 2015-03-18 15:36:45 +0100 |
---|---|---|
committer | Daniel Langesten <daniel.langest@gmail.com> | 2015-03-18 15:36:45 +0100 |
commit | 39ce24b4a0a9946b759149900373bb888d98f0d0 (patch) | |
tree | 14c7cc105c8d176aff708646a70c69c9212e19cf | |
parent | 00f8d6f65cedc301d4f5eb441db9babcc2efb901 (diff) |
compile issues
-rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,9 +18,9 @@ func main() { switch cfg.DataSource { case "stdin": - processFromStdin() + processFromStdin(cfg) case "mysq": - pricessFromDB() + processFromDB(cfg) default: log.Println("Invalid dataSource in config. Needs to be either 'stdin' or 'mysql'.") } @@ -28,14 +28,14 @@ func main() { log.Println("Finished processing, now exiting") } -func processFromStdin() { +func processFromStdin(cfg *Config) { log.Println("Starting to process from stdin...") input := readFromStdin() rDatChan := parseRawData(input, cfg) cleanFromStdin(rDatChan, cfg) } -func processFromDB() { +func processFromDB(cfg *Config) { log.Print("Cleaning data...") starttime := time.Now() numOfRowsNotCleaned, err := cleanFromDB(cfg) |