Skip to content

Commit

Permalink
Apply Context to armhf template
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Apr 5, 2020
1 parent 3411110 commit 4d1d1a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion template/golang-http-armhf/go.mod
Expand Up @@ -4,4 +4,4 @@ go 1.13

replace handler/function => ./function

require github.com/openfaas-incubator/go-function-sdk v0.0.0-20181217173454-cac4b8744921
require github.com/openfaas-incubator/go-function-sdk v0.0.0-20200405082418-b31e65bf8a33
4 changes: 2 additions & 2 deletions template/golang-http-armhf/go.sum
@@ -1,2 +1,2 @@
github.com/openfaas-incubator/go-function-sdk v0.0.0-20181217173454-cac4b8744921 h1:IGP0tlTdv6r/zy3Kw61EhiXao61krCUs5KRHWSzCdxM=
github.com/openfaas-incubator/go-function-sdk v0.0.0-20181217173454-cac4b8744921/go.mod h1:F37Kp+hwdHP+o3UKjkGzikQg4weKiMvcegT9vCQjvjE=
github.com/openfaas-incubator/go-function-sdk v0.0.0-20200405082418-b31e65bf8a33 h1:KhbcrtXR+IO7IWF08RzKpgMudBhEeRRqNmRurE1iph4=
github.com/openfaas-incubator/go-function-sdk v0.0.0-20200405082418-b31e65bf8a33/go.mod h1:F37Kp+hwdHP+o3UKjkGzikQg4weKiMvcegT9vCQjvjE=
1 change: 1 addition & 0 deletions template/golang-http-armhf/main.go
Expand Up @@ -97,6 +97,7 @@ func makeRequestHandler() func(http.ResponseWriter, *http.Request) {
Method: r.Method,
QueryString: r.URL.RawQuery,
}
req.WithContext(r.Context())

result, resultErr := function.Handle(req)

Expand Down
2 changes: 0 additions & 2 deletions template/golang-http/go.mod
Expand Up @@ -4,6 +4,4 @@ go 1.13

replace handler/function => ./function

// require github.com/openfaas-incubator/go-function-sdk v0.0.0-20181217173454-cac4b8744921

require github.com/openfaas-incubator/go-function-sdk v0.0.0-20200405082418-b31e65bf8a33

0 comments on commit 4d1d1a3

Please sign in to comment.