@@ -347,7 +347,7 @@ var _ = ginkgo.Describe("Deliver", func() {
347347
348348 ginkgo .Context ("when multiple blocks are requested" , func () {
349349 ginkgo .BeforeEach (func () {
350- fakeBlockIterator .NextStub = func () (* cb.Block , cb.Status ) {
350+ fakeBlockIterator .NextStub = func (context. Context ) (* cb.Block , cb.Status ) {
351351 blk := & cb.Block {
352352 Header : & cb.BlockHeader {Number : 994 + uint64 (fakeBlockIterator .NextCallCount ())},
353353 }
@@ -440,7 +440,7 @@ var _ = ginkgo.Describe("Deliver", func() {
440440 seekInfo = & ab.SeekInfo {Start : & ab.SeekPosition {}, Stop : seekNewest }
441441
442442 fakeBlockReader .HeightReturns (3 )
443- fakeBlockIterator .NextStub = func () (* cb.Block , cb.Status ) {
443+ fakeBlockIterator .NextStub = func (context. Context ) (* cb.Block , cb.Status ) {
444444 blk := & cb.Block {
445445 Header : & cb.BlockHeader {Number : uint64 (fakeBlockIterator .NextCallCount ())},
446446 }
@@ -475,7 +475,7 @@ var _ = ginkgo.Describe("Deliver", func() {
475475 fakeBlockReader .IteratorReturns (fakeBlockIterator , 0 )
476476 fakeBlockReader .HeightReturns (2 )
477477 fakeChain .ReaderReturns (fakeBlockReader )
478- fakeBlockIterator .NextStub = func () (* cb.Block , cb.Status ) {
478+ fakeBlockIterator .NextStub = func (context. Context ) (* cb.Block , cb.Status ) {
479479 blk := & cb.Block {
480480 Header : & cb.BlockHeader {Number : uint64 (fakeBlockIterator .NextCallCount () - 1 )},
481481 }
@@ -509,7 +509,7 @@ var _ = ginkgo.Describe("Deliver", func() {
509509 }
510510
511511 fakeBlockReader .HeightReturns (3 )
512- fakeBlockIterator .NextStub = func () (* cb.Block , cb.Status ) {
512+ fakeBlockIterator .NextStub = func (context. Context ) (* cb.Block , cb.Status ) {
513513 blk := & cb.Block {
514514 Header : & cb.BlockHeader {Number : uint64 (fakeBlockIterator .NextCallCount ())},
515515 Data : & cb.BlockData {Data : [][]byte {{1 }, {2 }}},
@@ -555,7 +555,7 @@ var _ = ginkgo.Describe("Deliver", func() {
555555 ContentType : ab .SeekInfo_HEADER_WITH_SIG ,
556556 }
557557 fakeBlockReader .HeightReturns (4 )
558- fakeBlockIterator .NextStub = func () (* cb.Block , cb.Status ) {
558+ fakeBlockIterator .NextStub = func (context. Context ) (* cb.Block , cb.Status ) {
559559 nxtCallCount := fakeBlockIterator .NextCallCount ()
560560 block := & cb.Block {
561561 Header : & cb.BlockHeader {Number : uint64 (nxtCallCount )},
@@ -940,7 +940,7 @@ var _ = ginkgo.Describe("Deliver", func() {
940940 done = make (chan struct {})
941941 ctx , cancel = context .WithCancel (context .Background ())
942942 cancel ()
943- fakeBlockIterator .NextStub = func () (* cb.Block , cb.Status ) {
943+ fakeBlockIterator .NextStub = func (context. Context ) (* cb.Block , cb.Status ) {
944944 <- done
945945 return nil , cb .Status_BAD_REQUEST
946946 }
@@ -993,7 +993,7 @@ var _ = ginkgo.Describe("Deliver", func() {
993993
994994 ginkgo .BeforeEach (func () {
995995 doneCh = make (chan struct {})
996- fakeBlockIterator .NextStub = func () (* cb.Block , cb.Status ) {
996+ fakeBlockIterator .NextStub = func (context. Context ) (* cb.Block , cb.Status ) {
997997 <- doneCh
998998 return & cb.Block {}, cb .Status_INTERNAL_SERVER_ERROR
999999 }
0 commit comments