summaryrefslogtreecommitdiff
path: root/Code/test_redis_publish.py
diff options
context:
space:
mode:
authorLan Hui <lanhui@zjnu.edu.cn>2025-09-29 17:32:53 +0800
committerLan Hui <lanhui@zjnu.edu.cn>2025-09-29 17:32:53 +0800
commit358d0c1b764abea15aa732c6c982219be2bc8370 (patch)
treef5ca00e4aabab6a7c7cf6a2cf8e9fb66ad0da23a /Code/test_redis_publish.py
parente4190efc2efb8267a1dede57a6c75d34060ac68e (diff)
parent7447e7d86240ef6e61574d53e819dc33ceab527e (diff)
Merge branch 'master' of 118.25.96.118:~/BRAINCL
Diffstat (limited to 'Code/test_redis_publish.py')
-rw-r--r--Code/test_redis_publish.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Code/test_redis_publish.py b/Code/test_redis_publish.py
index 937833f..722e80e 100644
--- a/Code/test_redis_publish.py
+++ b/Code/test_redis_publish.py
@@ -8,7 +8,7 @@ def publish(number):
r.publish(REDIS_CHANNEL, json.dumps({'filename':'a.txt', 'data':str(number)}))
n = 0
-while True:
+while n < 10:
publish(n)
- time.sleep(3)
+ time.sleep(2)
n += 1