mirror of
https://github.com/vbatts/imgsrv.git
synced 2025-01-12 15:17:07 +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/hash"
|
||||||
"github.com/vbatts/imgsrv/types"
|
"github.com/vbatts/imgsrv/types"
|
||||||
"github.com/vbatts/imgsrv/util"
|
"github.com/vbatts/imgsrv/util"
|
||||||
"labix.org/v2/mgo"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
defaultPageLimit int = 25
|
defaultPageLimit int = 25
|
||||||
serverConfig config.Config
|
serverConfig config.Config
|
||||||
|
du dbutil.Util
|
||||||
mongo_session *mgo.Session // FIXME make this not global
|
|
||||||
images_db *mgo.Database // FIXME make this not global
|
|
||||||
du dbutil.Util
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -43,10 +39,10 @@ func runServer(c *config.Config) {
|
||||||
DbName: serverConfig.MongoDbName,
|
DbName: serverConfig.MongoDbName,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := du.Init()
|
err := du.Init()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
defer du.Close() // TODO this ought to catch a signal to cleanup
|
defer du.Close() // TODO this ought to catch a signal to cleanup
|
||||||
|
|
||||||
http.HandleFunc("/", routeRoot)
|
http.HandleFunc("/", routeRoot)
|
||||||
|
|
Loading…
Reference in a new issue