Commit 76334d1c authored by harrylee2015's avatar harrylee2015 Committed by vipwzw

rejust code for golinter

parent 32d70602
......@@ -770,7 +770,7 @@ func (client *client) DelBlock(block *types.Block, seq int64) error {
//IsCaughtUp 是否追上最新高度,
func (client *client) Query_IsCaughtUp(req *types.ReqNil) (types.Message, error) {
if client == nil {
return nil, fmt.Errorf("client not bind message queue.")
return nil, fmt.Errorf("%s", "client not bind message queue.")
}
return &types.IsCaughtUp{Iscaughtup: client.isCaughtUp}, nil
}
......
......@@ -93,8 +93,8 @@ func (c *Jrpc) GetAssetTxResult(req *types.ReqHash, result *interface{}) error {
}
// IsSync query is sync
func (g *channelClient) IsSync(ctx context.Context, in *types.ReqNil) (*types.IsCaughtUp, error) {
data, err := g.QueryConsensusFunc("para", "IsCaughtUp", &types.ReqNil{})
func (c *channelClient) IsSync(ctx context.Context, in *types.ReqNil) (*types.IsCaughtUp, error) {
data, err := c.QueryConsensusFunc("para", "IsCaughtUp", &types.ReqNil{})
if err != nil {
return nil, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment