skynetservices / skydns1

DNS for skynet or any other service discovery
MIT License
528 stars 54 forks source link

map access is not threadsafe #8

Closed nightlyone closed 11 years ago

nightlyone commented 11 years ago

Since map access is not atomic in Go, use the provided mutex to protect map and map members. See http://golang.org/doc/faq#atomic_maps for details.

Note: This also always deletes a service, as soon as the UUID matches. Maybe we should traverse the full tree in order to find the UUID, when the registry key is junk?

bketelsen commented 11 years ago

If you would like to be listed in the contributors file, please submit a pull request.