From a4c663b3150df64c99767273113e9b2a5b013a32 Mon Sep 17 00:00:00 2001 From: revantark Date: Mon, 22 Jul 2024 10:24:19 +0530 Subject: [PATCH] handle error --- btc/batcher.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/btc/batcher.go b/btc/batcher.go index 6bce0b1..e4c98e3 100644 --- a/btc/batcher.go +++ b/btc/batcher.go @@ -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 @@ -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")