mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 03:17:50 +00:00
push port from config file into Cruncher.Run()
This commit is contained in:
parent
f7b5550315
commit
39f941c771
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue