From ff0998af4c29ae097ac67c8dbc3ac4b6b620d2ac Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Thu, 3 Oct 2013 23:51:45 -0400 Subject: [PATCH] removing unused things --- server.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/server.go b/server.go index 83cc252..29ddea4 100644 --- a/server.go +++ b/server.go @@ -18,16 +18,12 @@ import ( "github.com/vbatts/imgsrv/hash" "github.com/vbatts/imgsrv/types" "github.com/vbatts/imgsrv/util" - "labix.org/v2/mgo" ) var ( defaultPageLimit int = 25 serverConfig config.Config - - mongo_session *mgo.Session // FIXME make this not global - images_db *mgo.Database // FIXME make this not global - du dbutil.Util + du dbutil.Util ) /* @@ -43,10 +39,10 @@ func runServer(c *config.Config) { DbName: serverConfig.MongoDbName, } - err := du.Init() - if err != nil { - log.Fatal(err) - } + err := du.Init() + if err != nil { + log.Fatal(err) + } defer du.Close() // TODO this ought to catch a signal to cleanup http.HandleFunc("/", routeRoot)