소스 검색

限流更新

zhangdongming 2 년 전
부모
커밋
5f26cc6fad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/ShadowController.py

+ 1 - 1
Controller/ShadowController.py

@@ -38,7 +38,7 @@ def generate_utk(request):
 
 
 # 更新设备影子
-@ratelimit(key='ip', rate='2/1s', block=True)
+@ratelimit(key='ip', rate='1/3s', block=True)
 def update_device_shadow(request):
     request.encoding = 'utf-8'
     if request.method == 'POST':