forked from External/ergo
Track client access time.
This commit is contained in:
parent
dbaa73a319
commit
32bee68407
2 changed files with 3 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ func NewServer(name string) *Server {
|
|||
go func() {
|
||||
for m := range recv {
|
||||
log.Printf("%s -> %T%+v", m.client.Id(), m.message, m.message)
|
||||
m.client.atime = time.Now()
|
||||
m.message.Handle(server, m.client)
|
||||
}
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue