From adba1a792a6fa984d5abeea7e40ddf647d1a8808 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Fri, 2 Jul 2021 15:15:16 +0200 Subject: [PATCH] add missing err check --- cmd/lotus-storage-miner/run.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-storage-miner/run.go b/cmd/lotus-storage-miner/run.go index 197141126..35c2ab3dc 100644 --- a/cmd/lotus-storage-miner/run.go +++ b/cmd/lotus-storage-miner/run.go @@ -134,7 +134,10 @@ var runCmd = &cli.Command{ bootstrapLibP2P := cfg.Subsystems.EnableStorageMarket - lr.Close() + err = lr.Close() + if err != nil { + return err + } shutdownChan := make(chan struct{})