From 16e24360acca583c56adfacb58726befa20dfff9 Mon Sep 17 00:00:00 2001 From: zhouop0 <11733741+zhouop0@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:46:32 +0800 Subject: [PATCH] format --- internal/handler/op_committer_stateroot.go | 2 -- internal/handler/op_committer_txs.go | 1 - 2 files changed, 3 deletions(-) diff --git a/internal/handler/op_committer_stateroot.go b/internal/handler/op_committer_stateroot.go index a901d21..c5b61ca 100644 --- a/internal/handler/op_committer_stateroot.go +++ b/internal/handler/op_committer_stateroot.go @@ -56,7 +56,6 @@ func GetStateRootAndCommitStateRootProposal(ctx *svc.ServiceContext) { continue } - //nolint: dupl if lastProposal.Status == schema.ProposalVotingStatus || lastProposal.Status == schema.ProposalTimeoutStatus { time.Sleep(30 * time.Second) // check address voted or not @@ -181,7 +180,6 @@ func GetStateRootAndCommitStateRootProposal(ctx *svc.ServiceContext) { log.Infof("[Handler.GetStateRootAndCommitStateRootProposal] success verify and vote submit output from ds: %s, dsHash: %s", lastProposal.ProposalID, lastProposal.DsTxHash) time.Sleep(30 * time.Second) } - } if lastProposal.Status == schema.ProposalCommitting { diff --git a/internal/handler/op_committer_txs.go b/internal/handler/op_committer_txs.go index 9e5b36b..5b2c0e6 100644 --- a/internal/handler/op_committer_txs.go +++ b/internal/handler/op_committer_txs.go @@ -56,7 +56,6 @@ func GetBlobsAndCommitTxsProposal(ctx *svc.ServiceContext) { continue } - //nolint: dupl if lastProposal.Status == schema.ProposalVotingStatus || lastProposal.Status == schema.ProposalTimeoutStatus { // check address voted or not phase, err := ctx.OpCommitterClient.ProposalManager.IsVotedOnTxsRootProposalPhase(&bind.CallOpts{}, lastProposal.ProposalID, common.HexToAddress(voteAddress))