优化rpc定时器

This commit is contained in:
boyce
2020-07-11 10:27:01 +08:00
parent 93b9c4f89a
commit 688d2d0bb4
6 changed files with 107 additions and 31 deletions

View File

@@ -3,6 +3,7 @@ package rpc
import (
"reflect"
"sync"
"time"
)
type RpcRequest struct {
@@ -45,6 +46,7 @@ type Call struct {
connid int
callback *reflect.Value
rpcHandler IRpcHandler
calltime time.Time
}
func (slf *Call) Clear(){