Closed matjazv closed 1 year ago
Currently SendRequestMessage
returns Response
struct which has field err error
.
If it would be sufficient that err
could be string
type instead of error
type then Response
struct could be removed and only ResponseMsg
struct could be used in entire p2p/v2
package.
Downside is that modules could not do if err != nil
but they would must do if err != ""
.
What was the problem?
This PR resolves #41.
How was it solved?
RegisterRPCHandler()
function.engine
were not updated to the latest version).How was it tested?