Browse Source

修改为每10分钟请求一次保存设备影子信息

zhangdongming 3 years ago
parent
commit
b4ce99a207
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/ShadowController.py

+ 1 - 1
Controller/ShadowController.py

@@ -58,7 +58,7 @@ def generate_utk(request):
 
 
 # 设备影子更新
-@ratelimit(key='ip', rate='1/h', block=True)
+@ratelimit(key='ip', rate='1/10m', block=True)
 def update_device_shadow(request):
     request.encoding = 'utf-8'
     response = ResponseObject()