瀏覽代碼

Explicitly enumerate third-party packages used by fasthttp benchmark

Aliaksandr Valialkin 10 年之前
父節點
當前提交
b85f19f91f
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 1
      frameworks/Go/fasthttp/setup.sh
  2. 2 1
      frameworks/Go/fasthttp/setup_prefork.sh

+ 2 - 1
frameworks/Go/fasthttp/setup.sh

@@ -4,6 +4,7 @@ sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
 
 fw_depends go
 
-go get ./...
+go get -u github.com/go-sql-driver/mysql
+go get -u github.com/valyala/fasthttp
 
 go run src/hello/hello.go &

+ 2 - 1
frameworks/Go/fasthttp/setup_prefork.sh

@@ -4,6 +4,7 @@ sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
 
 fw_depends go
 
-go get ./...
+go get -u github.com/go-sql-driver/mysql
+go get -u github.com/valyala/fasthttp
 
 go run src/hello/hello.go -prefork &