openfaas / connector-sdk

SDK for connecting events to functions
MIT License
54 stars 25 forks source link

Update TopicMap to use RWMutex #18

Closed tessellator closed 5 years ago

tessellator commented 5 years ago

Fixes #17

This commit updates the TopicMap implementation to use a RWMutex instead of a Mutex internally. This change offers more clear semantics as well as a better performance profile for concurrent reads.

Signed-off-by: Chad Taylor taylor.thomas.c@gmail.com

alexellis commented 5 years ago

Now available for vendoring via https://github.com/openfaas-incubator/connector-sdk/releases/tag/0.3.3