MCPcopy
hub / github.com/aceld/zinx / doFuncHandler

Method doFuncHandler

znet/msghandler.go:308–316  ·  view source on GitHub ↗

doFuncHandler handles functional requests (执行函数式请求)

(request ziface.IFuncRequest, workerID int)

Source from the content-addressed store, hash-verified

306
307// doFuncHandler handles functional requests (执行函数式请求)
308func (mh *MsgHandle) doFuncHandler(request ziface.IFuncRequest, workerID int) {
309 defer func() {
310 if err := recover(); err != nil {
311 zlog.Ins().ErrorF("workerID: %d doFuncRequest panic: %v", workerID, err)
312 }
313 }()
314 // Execute the functional request (执行函数式请求)
315 request.CallFunc()
316}
317
318// doMsgHandler immediately handles messages in a non-blocking manner
319// (立即以非阻塞方式处理消息)

Callers 1

StartOneWorkerMethod · 0.95

Calls 3

InsFunction · 0.92
ErrorFMethod · 0.65
CallFuncMethod · 0.65

Tested by

no test coverage detected