Ver código fonte

Explicitly enumerate third-party packages used by fasthttp benchmark

Aliaksandr Valialkin 10 anos atrás
pai
commit
b85f19f91f

+ 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 &