fix failing build

This commit is contained in:
Jeremy Jay 2014-07-18 14:29:23 -04:00
parent 5731ca7b42
commit fb3e181a62

View file

@ -21,15 +21,16 @@ import (
"github.com/google/cayley/config" "github.com/google/cayley/config"
"github.com/google/cayley/graph" "github.com/google/cayley/graph"
"github.com/google/cayley/graph/memstore"
"github.com/google/cayley/http" "github.com/google/cayley/http"
"github.com/google/cayley/nquads" "github.com/google/cayley/nquads"
_ "github.com/google/cayley/graph/memstore"
) )
func init() { func init() {
glog.SetToStderr(true) glog.SetToStderr(true)
cfg := config.ParseConfigFromFile("cayley_appengine.cfg") cfg := config.ParseConfigFromFile("cayley_appengine.cfg")
ts := memstore.NewTripleStore() ts, _ := graph.NewTripleStore("memstore", "", nil)
glog.Errorln(cfg) glog.Errorln(cfg)
LoadTriplesFromFileInto(ts, cfg.DatabasePath, cfg.LoadSize) LoadTriplesFromFileInto(ts, cfg.DatabasePath, cfg.LoadSize)
http.SetupRoutes(ts, cfg) http.SetupRoutes(ts, cfg)