@@ -445,15 +445,15 @@ func (a *AuctioneerServer) Start(ctx_in context.Context) {
445445 a .StopWaiter .Start (ctx_in , a )
446446 // Start S3 storage service to persist validated bids to s3
447447 if a .s3StorageService != nil {
448- a .s3StorageService .Start (ctx_in )
448+ a .s3StorageService .Start (a . GetContext () )
449449 }
450450
451451 // Start coordination to manage primary/secondary status
452452 a .StopWaiter .CallIteratively (a .updateCoordination )
453453
454454 // Channel that consumer uses to indicate its readiness.
455455 readyStream := make (chan struct {}, 1 )
456- a .consumer .Start (ctx_in )
456+ a .consumer .Start (a . GetContext () )
457457 // Channel for single consumer, once readiness is indicated in this,
458458 // consumer will start consuming iteratively.
459459 ready := make (chan struct {}, 1 )
@@ -795,6 +795,9 @@ func (a *AuctioneerServer) StopAndWait() {
795795 // auctioneerLivenessTimeout. This timeout gives time for existing messages to become
796796 // unclaimed after IdleTimeToAutoclaim before the secondary auctioneer starts consuming
797797 // messages.
798- a .StopWaiter .StopAndWait ()
799798 a .consumer .StopAndWait ()
799+ if a .s3StorageService != nil {
800+ a .s3StorageService .StopAndWait ()
801+ }
802+ a .StopWaiter .StopAndWait ()
800803}
0 commit comments