echox
echox copied to clipboard
Fix concurrent read/write of map
The Google App Engine example is unsafely reading / writing from a map. This fixes it to use a RWMutex to ensure that map is accessed safely.
I'm not sure we should complicate the example that much. Might be better to just add a note, that this code requires a proper mechanism in production.
Feedback weclome.