Explorar o código

修改并发数

zhangdongming %!s(int64=3) %!d(string=hai) anos
pai
achega
f6f9137c62
Modificáronse 1 ficheiros con 1 adicións e 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':