push port from config file into Cruncher.Run()

This commit is contained in:
travisturner 2013-12-11 11:00:47 -06:00
parent f7b5550315
commit 39f941c771
2 changed files with 6 additions and 2 deletions

View file

@ -8,6 +8,9 @@ import (
type Cruncher struct {
}
func (cruncher *Cruncher) Run() {
func (cruncher *Cruncher) Run(port int) {
spew.Dump("Cruncher.Run")
spew.Dump(port)
}

View file

@ -15,6 +15,7 @@ import (
//"flag"
//"encoding/gob"
//"io"
"pilosa/config"
)
type Stats struct {
@ -308,7 +309,7 @@ func (service *Service) Run() {
//go service.HandleInbox()
//go service.ServeHTTP()
go service.MetaWatcher()
go service.Cruncher.Run()
go service.Cruncher.Run(config.GetInt("port_tcp"))
sigterm, sighup := service.GetSignals()
for {