Add clear command and get rid of the development flag

This commit is contained in:
khlieng 2015-05-02 01:02:21 +02:00
parent d1a82a65b5
commit 79095154ca
4 changed files with 40 additions and 20 deletions

View file

@ -31,8 +31,8 @@ type File struct {
ContentType string
}
func Run(port int, development bool) {
defer storage.Cleanup()
func Run(port int) {
defer storage.Close()
channelStore = storage.NewChannelStore()
sessions = make(map[string]*Session)
@ -48,9 +48,7 @@ func Run(port int, development bool) {
File{"/font/fontello.woff", "application/font-woff"},
}
if !development {
reconnect()
}
reconnect()
router := httprouter.New()