优化多服务

This commit is contained in:
hoteas
2017-10-27 04:28:47 +00:00
parent fdc4a00176
commit 7423a7dd57
7 changed files with 76 additions and 72 deletions
+7 -7
View File
@@ -46,13 +46,13 @@ func Run() {
"index": hotime.Ctr{
"test": func(this *hotime.Context) {
fmt.Println(this.Db.GetTag())
x := this.Db.Action(func(db hotime.HoTimeDB) bool {
db.Insert("user", hotime.Map{"unickname": "dasdas"})
return true
})
this.Display(5, x)
//x := this.Db.Action(func(db hotime.HoTimeDB) bool {
//
// db.Insert("user", hotime.Map{"unickname": "dasdas"})
//
// return true
//})
this.Display(0, 1)
},
"websocket": func(this *hotime.Context) {
hdler := websocket.Handler(func(ws *websocket.Conn) {