Skip to content

Commit

Permalink
update: rsp.Data为nil打印日志
Browse files Browse the repository at this point in the history
  • Loading branch information
phantacix committed May 15, 2024
1 parent 6206533 commit 709e5c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions net/actor/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,13 @@ func (p *System) CallWait(source, target, funcName string, arg interface{}, repl
}

if reply != nil {
if rsp.Data == nil {
clog.Warnf("[CallWait] rsp.Data is nil. [targetPath = %s, error = %s]",
target,
err,
)
}

err = p.app.Serializer().Unmarshal(rsp.Data, reply)
if err != nil {
clog.Warnf("[CallWait] Unmarshal reply error. [targetPath = %s, error = %s]",
Expand Down

0 comments on commit 709e5c9

Please sign in to comment.