Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-bee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-bee
Commits
00a41139
Verified
Commit
00a41139
authored
Oct 21, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[broker] Ord instance of MessageId
parent
72ad625b
Pipeline
#6866
failed with stages
in 1 minute and 38 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
PGMQ.hs
src/Async/Worker/Broker/PGMQ.hs
+1
-1
Redis.hs
src/Async/Worker/Broker/Redis.hs
+1
-1
STM.hs
src/Async/Worker/Broker/STM.hs
+1
-1
Types.hs
src/Async/Worker/Broker/Types.hs
+1
-0
No files found.
src/Async/Worker/Broker/PGMQ.hs
View file @
00a41139
...
...
@@ -43,7 +43,7 @@ instance (SerializableMessage a, Show a) => MessageBroker PGMQBroker a where
deriving
(
Show
)
data
Message
PGMQBroker
a
=
PGMQM
a
data
MessageId
PGMQBroker
=
PGMQMid
Int
deriving
(
Eq
,
Show
)
deriving
(
Eq
,
Show
,
Ord
)
data
BrokerInitParams
PGMQBroker
a
=
PGMQBrokerInitParams
PSQL
.
ConnectInfo
PGMQ
.
VisibilityTimeout
|
PGMQBrokerInitConnStr
BS
.
ByteString
PGMQ
.
VisibilityTimeout
...
...
src/Async/Worker/Broker/Redis.hs
View file @
00a41139
...
...
@@ -56,7 +56,7 @@ instance (SerializableMessage a, Show a) => MessageBroker RedisBroker a where
deriving
(
Show
)
data
Message
RedisBroker
a
=
RedisM
a
data
MessageId
RedisBroker
=
RedisMid
Int
deriving
(
Eq
,
Show
)
deriving
(
Eq
,
Show
,
Ord
)
data
BrokerInitParams
RedisBroker
a
=
RedisBrokerInitParams
Redis
.
ConnectInfo
messageId
(
RedisBM
(
RedisWithMsgId
{
rmidId
}))
=
RedisMid
rmidId
...
...
src/Async/Worker/Broker/STM.hs
View file @
00a41139
...
...
@@ -47,7 +47,7 @@ instance (Show a) => MessageBroker STMBroker a where
deriving
(
Show
)
data
Message
STMBroker
a
=
STMM
a
data
MessageId
STMBroker
=
STMMid
Int
deriving
(
Eq
,
Show
)
deriving
(
Eq
,
Show
,
Ord
)
data
BrokerInitParams
STMBroker
a
=
STMBrokerInitParams
{
archiveMap
::
TVar
(
Map
.
Map
Queue
(
Map
.
Map
Int
(
STMWithMsgId
a
)))
,
stmMap
::
TVar
(
Map
.
Map
Queue
(
Map
.
Map
Int
(
STMWithMsgId
a
)))
}
...
...
src/Async/Worker/Broker/Types.hs
View file @
00a41139
...
...
@@ -84,6 +84,7 @@ type SerializableMessage a = ( FromJSON a
class
(
Eq
(
MessageId
b
)
,
Show
(
MessageId
b
)
,
Ord
(
MessageId
b
)
,
ToJSON
(
MessageId
b
)
,
FromJSON
(
MessageId
b
)
,
Show
(
BrokerMessage
b
a
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment