Skip to content

Commit b8f7283

Browse files
committed
refactor: remove remoteWait function and related call from publish.sh
"cargo publish" uses its own timeout now.
1 parent 09dae04 commit b8f7283

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

publish.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,6 @@ function get_crate_name {
7979
awk -v FS="name = " 'NF>1{print $2; exit}' Cargo.toml
8080
}
8181

82-
function remoteWait() {
83-
IFS=:
84-
secs=${1}
85-
crate_name=${2}
86-
while [ $secs -gt 0 ]
87-
do
88-
sleep 1 &
89-
printf "\rSleeping to allow %s to propagate on crates.io servers. Continuing in %2d second(s)." ${crate_name} ${secs}
90-
secs=$(( $secs - 1 ))
91-
wait
92-
done
93-
echo
94-
}
95-
9682
function publishCrates {
9783
for CRATE in "${crates[@]}"
9884
do
@@ -123,7 +109,6 @@ function publishCrates {
123109
fi
124110
fi
125111
echo "Successfully published $crate_name to crates.io"
126-
remoteWait 30 $crate_name
127112
done
128113
}
129114

0 commit comments

Comments
 (0)