Explorar el Código

修改并发数

zhangdongming hace 3 años
padre
commit
f6f9137c62
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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':