Skip to content

Fix concurrent read/write of map#55

Open
davidjwilkins wants to merge 1 commit intolabstack:masterfrom
davidjwilkins:master
Open

Fix concurrent read/write of map#55
davidjwilkins wants to merge 1 commit intolabstack:masterfrom
davidjwilkins:master

Conversation

@davidjwilkins
Copy link
Copy Markdown

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.

@lammel
Copy link
Copy Markdown
Contributor

lammel commented Dec 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants