mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
优化rpc模块代码规范
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package rpc
|
||||
|
||||
import (
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
"github.com/duanhf2012/origin/util/sync"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
@@ -110,7 +110,8 @@ func (jsonRpcResponseData *JsonRpcResponseData) GetErr() *RpcError {
|
||||
return nil
|
||||
}
|
||||
|
||||
return Errorf(jsonRpcResponseData.Err)
|
||||
err := RpcError(jsonRpcResponseData.Err)
|
||||
return &err
|
||||
}
|
||||
|
||||
func (jsonRpcResponseData *JsonRpcResponseData) GetReply() []byte{
|
||||
|
||||
Reference in New Issue
Block a user