fix type signature of fediChordInit
This commit is contained in:
parent
98ca0ff13e
commit
4bf8091143
|
@ -95,10 +95,10 @@ import Debug.Trace (trace)
|
||||||
|
|
||||||
-- | initialise data structures, compute own IDs and bind to listening socket
|
-- | initialise data structures, compute own IDs and bind to listening socket
|
||||||
-- ToDo: load persisted state, thus this function already operates in IO
|
-- ToDo: load persisted state, thus this function already operates in IO
|
||||||
--fediChordInit :: (DHT d, Service s d)
|
fediChordInit :: (Service s RealNodeSTM)
|
||||||
-- => FediChordConf
|
=> FediChordConf
|
||||||
-- -> (d -> s d) -- ^ runner function for service
|
-> (RealNodeSTM -> IO (s RealNodeSTM)) -- ^ runner function for service
|
||||||
-- -> IO (Socket, LocalNodeStateSTM)
|
-> IO (Socket, LocalNodeStateSTM)
|
||||||
fediChordInit initConf serviceRunner = do
|
fediChordInit initConf serviceRunner = do
|
||||||
emptyLookupCache <- newTVarIO Map.empty
|
emptyLookupCache <- newTVarIO Map.empty
|
||||||
let realNode = RealNode {
|
let realNode = RealNode {
|
||||||
|
|
Loading…
Reference in a new issue