mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
prevent zero memory requirement
This commit is contained in:
@@ -149,6 +149,10 @@ func (r *Runner) checkMemAndUse(req uint64) bool {
|
||||
func (r *Runner) Run(ctx context.Context, cfg *Config) (drivers.RunResult, error) {
|
||||
var err error
|
||||
|
||||
if cfg.Memory == 0 {
|
||||
cfg.Memory = 128
|
||||
}
|
||||
|
||||
ctask := &containerTask{
|
||||
ctx: ctx,
|
||||
cfg: cfg,
|
||||
|
||||
Reference in New Issue
Block a user