Kaynağa Gözat

auto commit

master
jfinn 2 yıl önce
ebeveyn
işleme
97ab8724dc
1 değiştirilmiş dosya ile 8 ekleme ve 1 silme
  1. 8
    1
      wsps/tasks_loop.py

+ 8
- 1
wsps/tasks_loop.py Dosyayı Görüntüle

@@ -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 = []

Loading…
İptal
Kaydet