Skip to content

Commit 20e1ed3

Browse files
benjaminhuowrongerror
authored andcommitted
Merge pull request OpenFunction#66 from wrongerror/main
add route to subscription when using http service & bugfix Signed-off-by: wrongerror <[email protected]>
2 parents 28cbda8 + 86f7bcc commit 20e1ed3

File tree

4 files changed

+1599
-14
lines changed

4 files changed

+1599
-14
lines changed

context/context.go

+2
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ func (ctx *FunctionContext) GetNativeContext() context.Context {
517517
}
518518

519519
func (ctx *FunctionContext) SetNativeContext(c context.Context) {
520+
ctx.mu.Lock()
521+
defer ctx.mu.Unlock()
520522
ctx.Ctx = c
521523
}
522524

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ require (
5959
github.com/mitchellh/mapstructure v1.5.0 // indirect
6060
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
6161
github.com/modern-go/reflect2 v1.0.2 // indirect
62+
github.com/onsi/gomega v1.18.1 // indirect
6263
github.com/openzipkin/zipkin-go v0.2.2 // indirect
6364
github.com/pmezard/go-difflib v1.0.0 // indirect
6465
github.com/prometheus/client_golang v1.12.2 // indirect

0 commit comments

Comments
 (0)