Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Taroni
chia-blockchain
Commits
399ca6ff
Commit
399ca6ff
authored
4 years ago
by
Florin Chirica
Browse files
Options
Download
Email Patches
Plain Diff
Lint.
parent
e2f2da4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
chia/crawler/crawl_store.py
+3
-6
chia/crawler/crawl_store.py
chia/crawler/crawler.py
+0
-1
chia/crawler/crawler.py
with
3 additions
and
7 deletions
+3
-7
chia/crawler/crawl_store.py
+
3
-
6
View file @
399ca6ff
...
...
@@ -51,11 +51,7 @@ class CrawlStore:
)
)
await
self
.
crawl_db
.
execute
(
(
"CREATE TABLE IF NOT EXISTS good_peers(ip text)"
)
)
await
self
.
crawl_db
.
execute
((
"CREATE TABLE IF NOT EXISTS good_peers(ip text)"
))
await
self
.
crawl_db
.
execute
(
"CREATE INDEX IF NOT EXISTS ip_address on peer_records(ip_address)"
)
...
...
@@ -242,7 +238,8 @@ class CrawlStore:
await
cursor
.
close
()
for
peer
in
peers
:
cursor
=
await
self
.
crawl_db
.
execute
(
"INSERT OR REPLACE INTO good_peers VALUES(?)"
,
(
peer
,),
"INSERT OR REPLACE INTO good_peers VALUES(?)"
,
(
peer
,),
)
await
cursor
.
close
()
await
self
.
crawl_db
.
commit
()
This diff is collapsed.
Click to expand it.
chia/crawler/crawler.py
+
0
-
1
View file @
399ca6ff
...
...
@@ -205,7 +205,6 @@ class Crawler:
def
_close
(
self
):
self
.
_shut_down
=
True
self
.
transport
.
close
()
async
def
_await_closed
(
self
):
await
self
.
connection
.
close
()
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help