mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
wait for rethinkdb indexes to be ready
This commit is contained in:
parent
0de10791aa
commit
908988c4f0
2
setup.py
2
setup.py
@ -49,7 +49,7 @@ except:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='warcprox',
|
name='warcprox',
|
||||||
version='2.2b1.dev102',
|
version='2.2b1.dev103',
|
||||||
description='WARC writing MITM HTTP/S proxy',
|
description='WARC writing MITM HTTP/S proxy',
|
||||||
url='https://github.com/internetarchive/warcprox',
|
url='https://github.com/internetarchive/warcprox',
|
||||||
author='Noah Levitt',
|
author='Noah Levitt',
|
||||||
|
@ -113,6 +113,7 @@ class RethinkCaptures:
|
|||||||
[r.row["abbr_canon_surt"], r.row["timestamp"]]).run()
|
[r.row["abbr_canon_surt"], r.row["timestamp"]]).run()
|
||||||
self.rr.table(self.table).index_create("sha1_warc_type", [
|
self.rr.table(self.table).index_create("sha1_warc_type", [
|
||||||
r.row["sha1base32"], r.row["warc_type"], r.row["bucket"]]).run()
|
r.row["sha1base32"], r.row["warc_type"], r.row["bucket"]]).run()
|
||||||
|
self.rr.table(self.table).index_wait().run()
|
||||||
|
|
||||||
def find_response_by_digest(self, algo, raw_digest, bucket="__unspecified__"):
|
def find_response_by_digest(self, algo, raw_digest, bucket="__unspecified__"):
|
||||||
if algo != "sha1":
|
if algo != "sha1":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user