소스 검색

修改并发数

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

+ 1 - 0
Controller/ShadowController.py

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