Simplify names in cmd source

This commit is contained in:
kortschak 2014-06-28 12:38:51 +09:30
parent 47c9752e5e
commit c4a19a4e35
6 changed files with 17 additions and 17 deletions

View file

@ -141,7 +141,7 @@ func SetupRoutes(ts graph.TripleStore, cfg *config.CayleyConfig) {
http.Handle("/", r)
}
func CayleyHTTP(ts graph.TripleStore, cfg *config.CayleyConfig) {
func Serve(ts graph.TripleStore, cfg *config.CayleyConfig) {
SetupRoutes(ts, cfg)
glog.Infof("Cayley now listening on %s:%s\n", cfg.ListenHost, cfg.ListenPort)
fmt.Printf("Cayley now listening on %s:%s\n", cfg.ListenHost, cfg.ListenPort)