Skip to content

Commit 463baa4

Browse files
committed
fix: [crawlers] fix domain onion cache
1 parent 17d3d2d commit 463baa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/lib/crawlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def add_domain_correlation_cache(domain, obj_gid):
125125
def save_domain_correlation_cache(is_domain_up, domain):
126126
if is_domain_up:
127127
dom = Domain(domain)
128-
for obj_gid in r_cache.sadd(f'cache:domain:correlation:objs:{domain}'):
128+
for obj_gid in r_cache.smembers(f'cache:domain:correlation:objs:{domain}'):
129129
obj_type, obj_subtype, obj_id = obj_gid.split(':', 2)
130130
if not obj_subtype:
131131
obj_subtype = ''

0 commit comments

Comments
 (0)