Commit 4a497d0b authored by AlexStocks's avatar AlexStocks

Mod: delete active

parent 6cdd771f
......@@ -67,7 +67,6 @@ func (h *MessageHandler) Handle(session getty.Session, pkg *EchoPackage) error {
type clientEchoSession struct {
session getty.Session
active time.Time
reqNum int32
}
......@@ -137,7 +136,6 @@ func (h *EchoMessageHandler) OnMessage(session getty.Session, pkg interface{}) {
if err != nil {
h.rwlock.Lock()
if _, ok := h.sessionMap[session]; ok {
h.sessionMap[session].active = time.Now()
h.sessionMap[session].reqNum++
}
h.rwlock.Unlock()
......
......@@ -16,7 +16,6 @@ import (
import (
"github.com/AlexStocks/getty"
"github.com/AlexStocks/goext/log"
log "github.com/AlexStocks/log4go"
)
......
......@@ -79,7 +79,6 @@ func (h *MessageHandler) Handle(session getty.Session, ctx getty.UDPContext) err
type clientEchoSession struct {
session getty.Session
active time.Time
reqNum int32
}
......@@ -155,7 +154,6 @@ func (h *EchoMessageHandler) OnMessage(session getty.Session, udpCtx interface{}
if err != nil {
h.rwlock.Lock()
if _, ok := h.sessionMap[session]; ok {
h.sessionMap[session].active = time.Now()
h.sessionMap[session].reqNum++
}
h.rwlock.Unlock()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment