浏览代码

auto commit

master
jfinn 2 年前
父节点
当前提交
97ab8724dc
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8
    1
      wsps/tasks_loop.py

+ 8
- 1
wsps/tasks_loop.py 查看文件

@@ -24,7 +24,13 @@ def nop(*a,**kw):pass
24 24
 class Edict(dict):pass
25 25
 class Eobj():pass
26 26
 def connect_redis():
27
-	return redis.Redis(host='localhost', port=6379, db=0,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace")
27
+	return redis.Redis(host='localhost', port=6379, db=0,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace"),
28
+	r'''
29
+	return {
30
+	 "rconn0":redis.Redis(host='localhost', port=6379, db=0,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace"),
31
+	 "rconn1":redis.Redis(host='localhost', port=6379, db=1,charset="utf-8", decode_responses=True, encoding_errors="backslashreplace"),
32
+	}
33
+	# '''
28 34
 
29 35
 
30 36
 
@@ -169,6 +175,7 @@ class globCL(GCLMixin):
169 175
 		# for now we are not going to do any weird class stuff
170 176
 		self.acl = None
171 177
 		self.has_cl = False
178
+		# rconns = connect_redis()
172 179
 		self.rconn = connect_redis()
173 180
 		self.rman = RldMan()
174 181
 		self.cbs_once = []

正在加载...
取消
保存