stylish run
This commit is contained in:
parent
1a7afed062
commit
499c90e63a
|
@ -69,12 +69,12 @@ import qualified Data.ByteString.UTF8 as BSU
|
|||
import Data.Either (rights)
|
||||
import Data.Foldable (foldr')
|
||||
import Data.Functor.Identity
|
||||
import Data.HashMap.Strict (HashMap)
|
||||
import qualified Data.HashMap.Strict as HMap
|
||||
import Data.IP (IPv6, fromHostAddress6,
|
||||
toHostAddress6)
|
||||
import Data.List ((\\))
|
||||
import qualified Data.Map.Strict as Map
|
||||
import qualified Data.HashMap.Strict as HMap
|
||||
import Data.HashMap.Strict (HashMap)
|
||||
import Data.Maybe (catMaybes, fromJust, fromMaybe,
|
||||
isJust, isNothing, mapMaybe)
|
||||
import qualified Data.Set as Set
|
||||
|
|
|
@ -69,10 +69,10 @@ import Control.Exception
|
|||
import Data.Foldable (foldr')
|
||||
import Data.Function (on)
|
||||
import qualified Data.Hashable as Hashable
|
||||
import Data.List (delete, nub, sortBy)
|
||||
import qualified Data.Map.Strict as Map
|
||||
import Data.HashMap.Strict (HashMap)
|
||||
import qualified Data.HashMap.Strict as HMap
|
||||
import Data.List (delete, nub, sortBy)
|
||||
import qualified Data.Map.Strict as Map
|
||||
import Data.Maybe (fromJust, fromMaybe, isJust,
|
||||
isNothing, mapMaybe)
|
||||
import qualified Data.Set as Set
|
||||
|
@ -163,11 +163,8 @@ data RealNode s = RealNode
|
|||
-- ^ a global cache of looked up keys and their associated nodes
|
||||
, globalNodeCacheSTM :: TVar NodeCache
|
||||
-- ^ EpiChord node cache with expiry times for nodes.
|
||||
-- Shared between all vservers, each 'LocalNodeState' holds a reference to
|
||||
-- the same TVar for avoiding unnecessary reads of parent node
|
||||
, globalCacheWriteQueue :: TQueue (NodeCache -> NodeCache)
|
||||
-- ^ cache updates are not written directly to the 'globalNodeCacheSTM'
|
||||
-- but queued and processed by a single thread
|
||||
, nodeService :: s (RealNodeSTM s)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue