Permalink
Browse files

Fix setting of bi data path

  • Loading branch information...
1 parent 7a25295 commit 168923acdfa2db706be932a239125c58e55d2ec6 @daviddengcn committed Jan 22, 2016
Showing with 3 additions and 7 deletions.
  1. +0 −4 bi.go
  2. +3 −3 config.go
View
@@ -4,10 +4,6 @@ import (
"github.com/daviddengcn/go-easybi"
)
-func init() {
- bi.DataPath = BiDataPath.S()
-}
-
func AddBiValueAndProcess(aggr bi.AggregateMethod, name string, value int) {
bi.AddValue(aggr, name, value)
bi.Flush()
View
@@ -32,6 +32,7 @@ import (
"github.com/golangplus/strings"
+ "github.com/daviddengcn/go-easybi"
"github.com/daviddengcn/go-ljson-conf"
"github.com/daviddengcn/go-villa"
)
@@ -87,8 +88,7 @@ var (
CrawlerGithubClientID = ""
CrawlerGithubClientSecret = ""
- BiDataPath = villa.Path("/tmp/gcse.bolt")
- BiWebPath = "/bi"
+ BiWebPath = "/bi"
/*
Increase this to ignore etag of last versions to crawl and parse all
@@ -148,6 +148,6 @@ func init() {
NonStorePackageRegexps = conf.StringList("docdb.nonstore_regexps", nil)
- BiDataPath = villa.Path(conf.String("bi.data_path", BiDataPath.S()))
+ bi.DataPath = conf.String("bi.data_path", "/tmp/gcse.bolt")
BiWebPath = conf.String("bi.web_path", BiWebPath)
}

0 comments on commit 168923a

Please sign in to comment.