fix(api/grpc): return the error for GetMultiSigns

This commit is contained in:
dawn-to-dusk 2020-12-17 19:05:33 +08:00
parent 876a5af0dc
commit 4acd6f2dbb
3 changed files with 4 additions and 4 deletions

View File

@ -4,6 +4,7 @@ import (
"context"
"encoding/binary"
"fmt"
"github.com/meshplus/bitxhub-model/pb"
)

View File

@ -29,13 +29,12 @@ func (cbs *ChainBrokerService) GetMultiSigns(ctx context.Context, req *pb.GetMul
cbs.logger.WithFields(logrus.Fields{
"id": req.Content,
"err": err.Error(),
}).Warnf("Get sign on current node")
}).Errorf("Get sign on current node")
return nil, err
} else {
result[address] = sign
}
return &pb.SignResponse{
Sign: result,
}, nil
}

View File

@ -128,7 +128,7 @@ func NewSwarms(t *testing.T, peerCnt int) []*Swarm {
Key: &repo.Key{},
NetworkConfig: &repo.NetworkConfig{
N: uint64(peerCnt),
ID: uint64(i+1),
ID: uint64(i + 1),
},
Certs: &repo.Certs{
NodeCertData: nodeData,