From 83b0cd89f43afea6b07417042ac96d1d31d39627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Wed, 31 May 2023 09:40:57 +0800 Subject: [PATCH] =?UTF-8?q?enhance(config):=E9=85=8D=E7=BD=AE=E9=9B=AA?= =?UTF-8?q?=E8=8A=B1ID=E7=94=9F=E6=88=90=E7=AE=97=E6=B3=95=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=BB=E6=9C=BA=E7=BC=96=E5=8F=B7=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/settings.go | 1 + settings.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/settings.go b/config/settings.go index ccd4124..a46dd93 100644 --- a/config/settings.go +++ b/config/settings.go @@ -33,6 +33,7 @@ type ServiceSetting struct { MaxSessionLife time.Duration ItemsPageSize int CacheLifeTime time.Duration + HostSerial int64 } // 定义全局变量 diff --git a/settings.yaml b/settings.yaml index f926f74..4a0e548 100644 --- a/settings.yaml +++ b/settings.yaml @@ -19,4 +19,5 @@ Redis: Service: MaxSessionLife: 2h ItemsPageSize: 20 - CacheLifeTime: 5m \ No newline at end of file + CacheLifeTime: 5m + HostSerial: 5