fixed sent server time

This commit is contained in:
2023-06-25 18:29:31 -05:00
parent 8f00a0c492
commit c09a6cfd25
4 changed files with 13 additions and 12 deletions

View File

@@ -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,