From b20d1c6f0afe3a3568eae28f0fd534621f5f582f Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 28 Jan 2020 14:57:36 +0800 Subject: [PATCH] SCF usually 20M memery --- function/scf.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/function/scf.php b/function/scf.php index f265540..3d9d09c 100644 --- a/function/scf.php +++ b/function/scf.php @@ -50,7 +50,6 @@ function GetPathSetting($event, $context) return $path; } - function getConfig($str) { return getenv($str); @@ -354,8 +353,8 @@ function SetbaseConfig($function_name, $Region, $Namespace, $SecretId, $SecretKe $host = 'scf.tencentcloudapi.com'; $tmpdata['Action'] = 'UpdateFunctionConfiguration'; $tmpdata['FunctionName'] = $function_name; - $tmpdata['Description'] = 'Onedrive index in SCF. SCF上的Onedrive目录网站程序。'; - $tmpdata['MemorySize'] = 128; + $tmpdata['Description'] = 'Onedrive index & manager in SCF.'; + $tmpdata['MemorySize'] = 64; $tmpdata['Timeout'] = 30; $tmpdata['Namespace'] = $Namespace; $tmpdata['Nonce'] = time();