优化多服务
This commit is contained in:
+7
-7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user