Skip to content

Commit 819fa73

Browse files
committed
Auto merge of #12686 - Turbo87:publish-script, r=epage
publish.py: Remove obsolete `sleep()` calls `cargo` waits for the package to appear in the index by default these days, so these obsolete extra `sleep()` calls are just making the publish process slower now without any advantages. see https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/publish.2Epy
2 parents 4ac43be + 49125e9 commit 819fa73

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

publish.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import os
1212
import re
1313
import subprocess
14-
import time
1514
import urllib.request
1615
from urllib.error import HTTPError
1716

@@ -52,13 +51,9 @@ def maybe_publish(path):
5251

5352
def main():
5453
print('Starting publish...')
55-
for i, path in enumerate(TO_PUBLISH):
56-
if maybe_publish(path):
57-
if i < len(TO_PUBLISH)-1:
58-
# Sleep to allow the index to update. This should probably
59-
# check that the index is updated, or use a retry loop
60-
# instead.
61-
time.sleep(5)
54+
for path in TO_PUBLISH:
55+
maybe_publish(path)
56+
6257
print('Publish complete!')
6358

6459

0 commit comments

Comments
 (0)