Browse Source

修改并发数

zhangdongming 3 years ago
parent
commit
f6f9137c62
1 changed files with 1 additions and 0 deletions
  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':