change NodeCache protection to STM
- putting the NodeCache behind an IORef had been chose because those could've been read non-blocking - the same is true for TVars. The performance characteristics are likely worse, but at the advantage of composability within STM monads
This commit is contained in:
parent
dc2e399d64
commit
914e07a412
4 changed files with 11 additions and 18 deletions
|
@ -4,7 +4,6 @@ module FediChordSpec where
|
|||
import Control.Exception
|
||||
import Data.ASN1.Parse (runParseASN1)
|
||||
import qualified Data.ByteString as BS
|
||||
import Data.IORef
|
||||
import qualified Data.Map.Strict as Map
|
||||
import Data.Maybe (fromJust)
|
||||
import qualified Data.Set as Set
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue