mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-12-25 15:26:30 +00:00
removing unused things
This commit is contained in:
parent
70072f7a59
commit
ff0998af4c
1 changed files with 5 additions and 9 deletions
14
server.go
14
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)
|
||||
|
|
Loading…
Reference in a new issue