fix(api/grpc): return the error for GetMultiSigns
This commit is contained in:
parent
876a5af0dc
commit
4acd6f2dbb
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
|
||||
"github.com/meshplus/bitxhub-model/pb"
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue