galenwarren commented on a change in pull request #303:
URL: https://github.com/apache/flink-statefun/pull/303#discussion_r814003316



##########
File path: statefun-sdk-go/v3/pkg/statefun/context.go
##########
@@ -64,7 +66,7 @@ type Context interface {
 }
 
 type statefunContext struct {
-       sync.Mutex
+       *sync.Mutex

Review comment:
       This was changed to a pointer so that different statefunContext 
instances can reference the same sync.Mutex, as opposed to each having their 
own sync.Mutex. I thought this was necessary because derived statefunContext 
instances all reference the same response object, and the mutex is used to 
prevent concurrent modifications to the response object?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to