mirror of
https://github.com/CPunch/gopenfusion.git
synced 2025-11-10 09:30:07 +00:00
fixed sent server time
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"io"
|
||||
"log"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/CPunch/gopenfusion/core/protocol/pool"
|
||||
)
|
||||
@@ -28,6 +29,10 @@ type CNPeer struct {
|
||||
alive bool
|
||||
}
|
||||
|
||||
func GetTime() uint64 {
|
||||
return uint64(time.Now().UnixMilli())
|
||||
}
|
||||
|
||||
func NewCNPeer(eRecv chan *Event, conn net.Conn) *CNPeer {
|
||||
return &CNPeer{
|
||||
conn: conn,
|
||||
|
||||
Reference in New Issue
Block a user