@@ -32,10 +32,10 @@ func (s *BlockBatchIteratorTestSuite) TestIter() {
32
32
StartHeight : common .Big0 ,
33
33
EndHeight : new (big.Int ).SetUint64 (headHeight ),
34
34
OnBlocks : func (
35
- ctx context.Context ,
35
+ _ context.Context ,
36
36
start , end * types.Header ,
37
- updateCurrentFunc UpdateCurrentFunc ,
38
- endIterFunc EndIterFunc ,
37
+ _ UpdateCurrentFunc ,
38
+ _ EndIterFunc ,
39
39
) error {
40
40
s .Equal (lastEnd .Uint64 (), start .Number .Uint64 ())
41
41
lastEnd = end .Number
@@ -63,9 +63,9 @@ func (s *BlockBatchIteratorTestSuite) TestIterEndFunc() {
63
63
StartHeight : common .Big0 ,
64
64
EndHeight : new (big.Int ).SetUint64 (headHeight ),
65
65
OnBlocks : func (
66
- ctx context.Context ,
66
+ _ context.Context ,
67
67
start , end * types.Header ,
68
- updateCurrentFunc UpdateCurrentFunc ,
68
+ _ UpdateCurrentFunc ,
69
69
endIterFunc EndIterFunc ,
70
70
) error {
71
71
s .Equal (lastEnd .Uint64 (), start .Number .Uint64 ())
@@ -93,9 +93,9 @@ func (s *BlockBatchIteratorTestSuite) TestIterCtxCancel() {
93
93
StartHeight : common .Big0 ,
94
94
EndHeight : new (big.Int ).SetUint64 (headHeight ),
95
95
OnBlocks : func (
96
- ctx context.Context ,
96
+ _ context.Context ,
97
97
start , end * types.Header ,
98
- updateCurrentFunc UpdateCurrentFunc ,
98
+ _ UpdateCurrentFunc ,
99
99
endIterFunc EndIterFunc ,
100
100
) error {
101
101
s .Equal (lastEnd .Uint64 (), start .Number .Uint64 ())
@@ -128,9 +128,9 @@ func (s *BlockBatchIteratorTestSuite) TestBlockBatchIteratorConfig() {
128
128
_ , err3 := NewBlockBatchIterator (context .Background (), & BlockBatchIteratorConfig {
129
129
Client : s .RPCClient .L1 ,
130
130
OnBlocks : func (
131
- ctx context.Context ,
131
+ _ context.Context ,
132
132
start , end * types.Header ,
133
- updateCurrentFunc UpdateCurrentFunc ,
133
+ _ UpdateCurrentFunc ,
134
134
endIterFunc EndIterFunc ,
135
135
) error {
136
136
s .Equal (lastEnd .Uint64 (), start .Number .Uint64 ())
@@ -145,9 +145,9 @@ func (s *BlockBatchIteratorTestSuite) TestBlockBatchIteratorConfig() {
145
145
_ , err4 := NewBlockBatchIterator (context .Background (), & BlockBatchIteratorConfig {
146
146
Client : s .RPCClient .L1 ,
147
147
OnBlocks : func (
148
- ctx context.Context ,
148
+ _ context.Context ,
149
149
start , end * types.Header ,
150
- updateCurrentFunc UpdateCurrentFunc ,
150
+ _ UpdateCurrentFunc ,
151
151
endIterFunc EndIterFunc ,
152
152
) error {
153
153
s .Equal (lastEnd .Uint64 (), start .Number .Uint64 ())
@@ -163,9 +163,9 @@ func (s *BlockBatchIteratorTestSuite) TestBlockBatchIteratorConfig() {
163
163
_ , err6 := NewBlockBatchIterator (context .Background (), & BlockBatchIteratorConfig {
164
164
Client : s .RPCClient .L1 ,
165
165
OnBlocks : func (
166
- ctx context.Context ,
166
+ _ context.Context ,
167
167
start , end * types.Header ,
168
- updateCurrentFunc UpdateCurrentFunc ,
168
+ _ UpdateCurrentFunc ,
169
169
endIterFunc EndIterFunc ,
170
170
) error {
171
171
s .Equal (lastEnd .Uint64 (), start .Number .Uint64 ())
@@ -181,9 +181,9 @@ func (s *BlockBatchIteratorTestSuite) TestBlockBatchIteratorConfig() {
181
181
_ , err7 := NewBlockBatchIterator (context .Background (), & BlockBatchIteratorConfig {
182
182
Client : s .RPCClient .L1 ,
183
183
OnBlocks : func (
184
- ctx context.Context ,
184
+ _ context.Context ,
185
185
start , end * types.Header ,
186
- updateCurrentFunc UpdateCurrentFunc ,
186
+ _ UpdateCurrentFunc ,
187
187
endIterFunc EndIterFunc ,
188
188
) error {
189
189
s .Equal (lastEnd .Uint64 (), start .Number .Uint64 ())
0 commit comments