From 3223950a5d5329f8c5b60de2b4408f29a6f06704 Mon Sep 17 00:00:00 2001 From: Shude Li Date: Fri, 19 May 2023 20:38:21 +0800 Subject: [PATCH] cmd/utils: do not check free disk space in dev mode (#27281) --- cmd/utils/cmd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index c9e02eb68..b91c36d67 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -118,6 +118,9 @@ func StartNode(ctx *cli.Context, stack *node.Node, isConsole bool) { } func monitorFreeDiskSpace(sigc chan os.Signal, path string, freeDiskSpaceCritical uint64) { + if path == "" { + return + } for { freeSpace, err := getFreeDiskSpace(path) if err != nil {