mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-20 06:49:27 +00:00
cmd/utils: do not check free disk space in dev mode (#27281)
This commit is contained in:
parent
99394adcb8
commit
3223950a5d
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue