Skip to content

Commit

Permalink
Replace registry goroutine and channel with mutex (#2243)
Browse files Browse the repository at this point in the history
* Replace registry goroutine and channel with mutex

This simplifies the registry code and makes it more efficient.

Originally, the registry was going to run many functions asynchronously in its own goroutine so that callers would not have to wait for the processing to finish. Over time, all the calls to registry functions became synchronous, so the channel and goroutine were nothing more than a synchronization mechanism. This PR replaces that goroutine with a simpler mutex.
  • Loading branch information
gammazero authored Sep 13, 2023
1 parent e564853 commit 2df9bf9
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 243 deletions.
Loading

0 comments on commit 2df9bf9

Please sign in to comment.