Skip to content

Commit

Permalink
handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
Revantark committed Jul 22, 2024
1 parent 12456af commit a4c663b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions btc/batcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,8 @@ func (w *batcherWallet) Start(ctx context.Context) error {
}
w.quit = make(chan struct{})

w.logger.Info("starting batcher wallet")
w.run(ctx)
return nil
w.logger.Info("--------starting batcher wallet--------")
return w.run(ctx)
}

// Stop gracefully stops the batcher wallet service
Expand All @@ -305,7 +304,7 @@ func (w *batcherWallet) Stop() error {
return ErrBatcherNotRunning
}

w.logger.Info("stopping batcher wallet")
w.logger.Info("--------stopping batcher wallet--------")
close(w.quit)

w.logger.Info("waiting for batcher wallet to stop")
Expand Down

0 comments on commit a4c663b

Please sign in to comment.