-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor interaction mutex to be simpler and more consistent
The interaction struct contains a mix of symc.Map and atomic.Value. In preparation for adding another element which also requires locking, for read / write operations, refactor to use a shared sync.RWMutex. Note planned PR also requires to be able to marshal the interaction object into a JSON response. Replacing these elements with simple golang constructs makes this simpler, avoiding the need to copy into another response struct.
- Loading branch information
1 parent
b115d57
commit 775c6d2
Showing
4 changed files
with
71 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters