Merge pull request #1469 from jaffee/remove-api-holder

remove Holder from API
This commit is contained in:
Matthew Jaffee 2018-07-05 22:52:54 -05:00 committed by GitHub
commit aa1e4df101
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

4
api.go
View file

@ -150,10 +150,6 @@ func (api *API) Query(ctx context.Context, req *QueryRequest) (QueryResponse, er
return resp, nil
}
func (api *API) Holder() *Holder {
return api.server.Holder()
}
// readColumnAttrSets returns a list of column attribute objects by id.
func (api *API) readColumnAttrSets(index *Index, ids []uint64) ([]*ColumnAttrSet, error) {
if index == nil {

View file

@ -249,7 +249,7 @@ func (g *GossipMemberSet) LocalState(join bool) []byte {
m := &pilosa.NodeStatus{
Node: g.papi.Node(),
MaxShards: g.papi.MaxShards(context.Background()),
Schema: &pilosa.Schema{Indexes: g.papi.Holder().Schema()},
Schema: &pilosa.Schema{Indexes: g.papi.Schema(context.Background())},
}
// Marshal nodestate data to bytes.