Commit 939bb6e0 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Wiring update for match creation time.

parent 1adf2b71
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -234,6 +234,10 @@ func (mh *MatchHandler) HandlerName() string {
	return mh.Core.HandlerName()
}

func (mh *MatchHandler) CreateTime() int64 {
	return mh.Core.CreateTime()
}

func (mh *MatchHandler) queueCall(f func(*MatchHandler)) bool {
	if mh.stopped.Load() {
		return false
+1 −0
Original line number Diff line number Diff line
@@ -260,6 +260,7 @@ type RuntimeMatchCore interface {
	Label() string
	TickRate() int
	HandlerName() string
	CreateTime() int64
	Cancel()
}

+4 −0
Original line number Diff line number Diff line
@@ -203,6 +203,10 @@ func (r *RuntimeGoMatchCore) HandlerName() string {
	return r.module
}

func (r *RuntimeGoMatchCore) CreateTime() int64 {
	return r.createTime
}

func (r *RuntimeGoMatchCore) Cancel() {
	r.ctxCancelFn()
}
+4 −0
Original line number Diff line number Diff line
@@ -446,6 +446,10 @@ func (rm *RuntimeJavaScriptMatchCore) HandlerName() string {
	return rm.module
}

func (rm *RuntimeJavaScriptMatchCore) CreateTime() int64 {
	return rm.createTime
}

func (rm *RuntimeJavaScriptMatchCore) Cancel() {
	// TODO: implement cancel
}
+4 −0
Original line number Diff line number Diff line
@@ -566,6 +566,10 @@ func (r *RuntimeLuaMatchCore) HandlerName() string {
	return r.module
}

func (r *RuntimeLuaMatchCore) CreateTime() int64 {
	return r.createTime
}

func (r *RuntimeLuaMatchCore) Cancel() {
	r.ctxCancelFn()
	r.vm.Close()