Add clear command and get rid of the development flag
This commit is contained in:
parent
d1a82a65b5
commit
79095154ca
4 changed files with 40 additions and 20 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue