ipld-eth-server/vendor/github.com/ipfs/go-ipfs-flags/flags.go

15 lines
203 B
Go

package flags
import (
"os"
)
// LowMemMode specifies if we should try to reduce the memory footprint
var LowMemMode bool
func init() {
if os.Getenv("IPFS_LOW_MEM") != "" {
LowMemMode = true
}
}