aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-05-07 10:32:36 +0800
committerMission Liao <mission.liao@dexon.org>2019-05-07 15:09:40 +0800
commit51f732d2baae2d8b6aa885c55c7fc17ccc1d45d8 (patch)
tree1141b8891bb887072d875ebf154dcca4dbd16f58
parenta5bf8e92826afce6c8fab1c85ad250affb97a0fc (diff)
downloaddexon-51f732d2baae2d8b6aa885c55c7fc17ccc1d45d8.tar.gz
dexon-51f732d2baae2d8b6aa885c55c7fc17ccc1d45d8.tar.zst
dexon-51f732d2baae2d8b6aa885c55c7fc17ccc1d45d8.zip
Fix lint error: should use String() instead of fmt.Sprintf
-rw-r--r--dex/consensus/core/test/state-change-request.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dex/consensus/core/test/state-change-request.go b/dex/consensus/core/test/state-change-request.go
index 995393bb3..a2d02709a 100644
--- a/dex/consensus/core/test/state-change-request.go
+++ b/dex/consensus/core/test/state-change-request.go
@@ -176,13 +176,13 @@ func (req *StateChangeRequest) String() (ret string) {
ret += fmt.Sprintf(
"Round:%v CRS:%s", crsReq.Round, crsReq.CRS.String()[:6])
case StateAddDKGComplaint:
- ret += fmt.Sprintf("%s", req.Payload.(*typesDKG.Complaint))
+ ret += req.Payload.(*typesDKG.Complaint).String()
case StateAddDKGMasterPublicKey:
- ret += fmt.Sprintf("%s", req.Payload.(*typesDKG.MasterPublicKey))
+ ret += req.Payload.(*typesDKG.MasterPublicKey).String()
case StateAddDKGMPKReady:
- ret += fmt.Sprintf("%s", req.Payload.(*typesDKG.MPKReady))
+ ret += req.Payload.(*typesDKG.MPKReady).String()
case StateAddDKGFinal:
- ret += fmt.Sprintf("%s", req.Payload.(*typesDKG.Finalize))
+ ret += req.Payload.(*typesDKG.Finalize).String()
case StateChangeLambdaBA:
ret += fmt.Sprintf("%v", time.Duration(req.Payload.(uint64)))
case StateChangeLambdaDKG: