Skip to content

Commit

Permalink
fixed: message.ChanResult 未初台化
Browse files Browse the repository at this point in the history
  • Loading branch information
phantacix committed May 15, 2024
1 parent cd0cb75 commit 6206533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/actor/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (p *Actor) invokeFunc(mb *mailbox, app cfacade.IApplication, fn cfacade.Inv
func (p *Actor) findChildActor(m *cfacade.Message) (*Actor, bool) {
// 如果当前actor为子actor,则终止本次消息处理
if p.path.IsChild() {
clog.Warnf("[findChildActor] Child actor cannot be created again。",
clog.Warnf("[findChildActor] Child actor cannot be created again。[target = %s->%s]",
m.Target,
m.FuncName,
)
Expand Down
1 change: 1 addition & 0 deletions net/actor/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ func (p *System) CallWait(source, target, funcName string, arg interface{}, repl
message.Target = target
message.FuncName = funcName
message.Args = arg
message.ChanResult = make(chan interface{})

var result interface{}

Expand Down

0 comments on commit 6206533

Please sign in to comment.