Plumbed Delta and the IdGenerator back through
This commit is contained in:
+2
-9
@@ -49,15 +49,8 @@ func main() {
|
||||
|
||||
sm := http.NewServeMux()
|
||||
|
||||
c := botserv.Controller{
|
||||
Idg: botserv.NewIdGenerator(),
|
||||
Conf: conf,
|
||||
Games: botserv.MapLock{
|
||||
M: make(map[string]*botserv.Game),
|
||||
},
|
||||
Memprofile: *mprofile,
|
||||
Profile: *profile,
|
||||
}
|
||||
c := botserv.NewController(conf, *mprofile, *profile)
|
||||
go c.Run()
|
||||
|
||||
sm.Handle("/", botserv.JsonHandler(c.Index))
|
||||
sm.Handle("/ws/", websocket.Handler(c.AddPlayer))
|
||||
|
||||
Reference in New Issue
Block a user