func (qs *QuadStore) Horizon() graph.PrimaryKey { var log MongoLogEntry err := qs.db.C("log").Find(nil).Sort("-LogID").One(&log) if err != nil { if err == mgo.ErrNotFound { return graph.NewSequentialKey(0) } glog.Errorf("Could not get Horizon from Mongo: %v", err) } return graph.NewSequentialKey(log.LogID) }
func (qs *QuadStore) Horizon() graph.PrimaryKey { return graph.NewSequentialKey(qs.log[len(qs.log)-1].ID) }
func (qs *QuadStore) Horizon() graph.PrimaryKey { return graph.NewSequentialKey(qs.horizon) }
func (qs *store) Horizon() graph.PrimaryKey { return graph.NewSequentialKey(0) }