mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 15:21:02 +00:00
Use pointer to not copy service.
This commit is contained in:
parent
d2dc3b4cb6
commit
5a337e576e
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
type Cruncher struct {
|
||||
core.Service
|
||||
*core.Service
|
||||
close_chan chan bool
|
||||
api *index.FragmentContainer
|
||||
}
|
||||
|
|
@ -33,7 +33,7 @@ func (cruncher *Cruncher) Run(port int) {
|
|||
func NewCruncher() *Cruncher {
|
||||
service := core.NewService()
|
||||
fragment_container := index.NewFragmentContainer()
|
||||
cruncher := Cruncher{*service, make(chan bool), fragment_container}
|
||||
cruncher := Cruncher{service, make(chan bool), fragment_container}
|
||||
cruncher.Transport = transport.NewTcpTransport(service)
|
||||
cruncher.Dispatch = dispatch.NewCruncherDispatch(service)
|
||||
return &cruncher
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue