You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see any locks in or around NotifyPut - what happens if this is called concurrently? Can I lose an advertisement or is there some clever mitigation that I'm missing?
The text was updated successfully, but these errors were encountered:
No clever mitigation - the library expects only 1 Put to be called at a time. If you're making multiple calls / publishing from multiple go-routines, you should use a channel to order / synchronize them.
Worth noting though that in this case you don't really want to be in a position where you're queuing up Notifys - or you'll pretty quickly see yourself getting rate limited.
you'll do much better to PublishLocal for something that's happening frequently, and then use a separate periodic announcement to get changes picked up.
I don't see any locks in or around
NotifyPut
- what happens if this is called concurrently? Can I lose an advertisement or is there some clever mitigation that I'm missing?The text was updated successfully, but these errors were encountered: