diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-06-26 21:45:34 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-06-28 20:44:18 +0200 |
commit | f714e508a337c3a9a9dbb1822d78b1042450ae86 (patch) | |
tree | ed5c24240cf8287d83b017676437435ac8ba263f /src/Erebos/Service.hs | |
parent | a8b7cde0814481647d4d2b2aa2ee93a3b04a3251 (diff) |
Automatic discovery of peers for pending messages
Changelog: Automatic discovery of peers for pending direct messages
Diffstat (limited to 'src/Erebos/Service.hs')
-rw-r--r-- | src/Erebos/Service.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Erebos/Service.hs b/src/Erebos/Service.hs index fefc503..4499ef9 100644 --- a/src/Erebos/Service.hs +++ b/src/Erebos/Service.hs @@ -104,7 +104,9 @@ someServiceEmptyGlobalState :: SomeService -> SomeServiceGlobalState someServiceEmptyGlobalState (SomeService p _) = SomeServiceGlobalState p (emptyServiceGlobalState p) -data SomeStorageWatcher s = forall a. Eq a => SomeStorageWatcher (Stored LocalState -> a) (a -> ServiceHandler s ()) +data SomeStorageWatcher s + = forall a. Eq a => SomeStorageWatcher (Stored LocalState -> a) (a -> ServiceHandler s ()) + | forall a. Eq a => GlobalStorageWatcher (Stored LocalState -> a) (Server -> a -> ExceptT ErebosError IO ()) mkServiceID :: String -> ServiceID |