echox icon indicating copy to clipboard operation
echox copied to clipboard

Fix concurrent read/write of map

Open davidjwilkins opened this issue 8 years ago • 1 comments

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.

davidjwilkins avatar Jan 11 '18 06:01 davidjwilkins

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.

lammel avatar Dec 06 '20 15:12 lammel