Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun committed Mar 28, 2024
1 parent 232ef14 commit a1b6c82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpc/server_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func MustInit() {
rpc.HookHandleCallMsg(middlewares.UniformError)

// invalid json rpc request without `ID`
// !!! This should always be checked at first as we might suffer nil pointer panic due to
// missing jsonrpc `ID` for following middleware executions.
rpc.HookHandleCallMsg(rpc.PreventMessagesWithouID)
}

Expand Down

0 comments on commit a1b6c82

Please sign in to comment.