Skip to content

Commit

Permalink
decrease concurrent connections of dart-pub
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx authored Mar 27, 2019
1 parent 1963a44 commit f68ddfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit f68ddfb

Please sign in to comment.