remove Holder from API

This commit is contained in:
Matt Jaffee 2018-07-05 20:58:25 -05:00
parent c10cdc9d22
commit 21bfa5df77
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF
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.