cmd/utils: do not check free disk space in dev mode (#27281)

This commit is contained in:
Shude Li 2023-05-19 20:38:21 +08:00 committed by devopsbo3
parent 98ab75d695
commit 066d94d37a

View file

@ -118,6 +118,9 @@ func StartNode(ctx *cli.Context, stack *node.Node, isConsole bool) {
} }
func monitorFreeDiskSpace(sigc chan os.Signal, path string, freeDiskSpaceCritical uint64) { func monitorFreeDiskSpace(sigc chan os.Signal, path string, freeDiskSpaceCritical uint64) {
if path == "" {
return
}
for { for {
freeSpace, err := getFreeDiskSpace(path) freeSpace, err := getFreeDiskSpace(path)
if err != nil { if err != nil {