core: update simplexmq (error handling) (#6231)

* core: update simplexmq (error handling)

* update simplexmq
This commit is contained in:
Evgeny
2025-08-29 10:05:20 +01:00
committed by GitHub
parent e6e99ab709
commit f6c699f3a5
10 changed files with 110 additions and 141 deletions
+4
View File
@@ -28,6 +28,7 @@ import Simplex.Messaging.Parsers (defaultJSON, dropPrefix, enumJSON, sumTypeJSON
import Simplex.Messaging.Transport (TLS (..), TSbChainKeys (..), TransportPeer (..))
import Simplex.Messaging.Transport.HTTP2.Client (HTTP2Client)
import qualified Simplex.Messaging.TMap as TM
import Simplex.Messaging.Util (AnyError (..), tshow)
import Simplex.RemoteControl.Client
import Simplex.RemoteControl.Types
@@ -155,6 +156,9 @@ data RemoteProtocolError
| RPEException {someException :: Text}
deriving (Show, Exception)
instance AnyError RemoteProtocolError where
fromSomeException = RPEException . tshow
type RemoteHostId = Int64
data RHKey = RHNew | RHId {remoteHostId :: RemoteHostId}