decrease concurrent connections of dart-pub

This commit is contained in:
Yuxiang Zhang 2019-03-27 10:55:38 +08:00 committed by GitHub
parent 1963a440b7
commit f68ddfb7a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
pub.sh
View File

@ -4,4 +4,4 @@ set -e
BASE_URL=${MIRROR_BASE_URL:-"https://mirrors.tuna.tsinghua.edu.cn/dart-pub"}
UPSTREAM_URL=${TUNASYNC_UPSTREAM_URL:-"https://pub.dartlang.org/api"}
/pub-cache/bin/pub_mirror --upstream $UPSTREAM_URL --verbose --connections 10 --concurrency 100 "$TUNASYNC_WORKING_DIR" "$BASE_URL"
/pub-cache/bin/pub_mirror --upstream $UPSTREAM_URL --verbose --connections 1 --concurrency 10 "$TUNASYNC_WORKING_DIR" "$BASE_URL"