Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
20d4ec79
Commit
20d4ec79
authored
2 years ago
by
Benjamin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
Changes by jonahhusson
parent
670456b9
No related branches found
No related tags found
5 merge requests
!510
Release
,
!419
rewrote the health tracker to both consider if there are waiting rounds and...
,
!370
Full round obj
,
!369
Full round obj
,
!340
Project/channels
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bindings/group.go
+1
-1
1 addition, 1 deletion
bindings/group.go
broadcast/utils_test.go
+2
-2
2 additions, 2 deletions
broadcast/utils_test.go
e2e/utils_test.go
+3
-3
3 additions, 3 deletions
e2e/utils_test.go
with
6 additions
and
6 deletions
bindings/group.go
+
1
−
1
View file @
20d4ec79
...
...
@@ -269,7 +269,7 @@ func (g *GroupChat) Send(groupId, message []byte, tag string) ([]byte, error) {
// Construct send report
sendReport
:=
&
GroupSendReport
{
RoundsList
:
makeRoundsList
(
round
),
RoundsList
:
makeRoundsList
(
round
.
ID
),
Timestamp
:
timestamp
.
UnixNano
(),
MessageID
:
msgID
.
Bytes
(),
}
...
...
This diff is collapsed.
Click to expand it.
broadcast/utils_test.go
+
2
−
2
View file @
20d4ec79
...
...
@@ -69,7 +69,7 @@ func (m *mockCmix) GetMaxMessageLength() int {
}
func
(
m
*
mockCmix
)
SendWithAssembler
(
recipient
*
id
.
ID
,
assembler
cmix
.
MessageAssembler
,
cmixParams
cmix
.
CMIXParams
)
(
id
.
Round
,
ephemeral
.
Id
,
error
)
{
cmixParams
cmix
.
CMIXParams
)
(
rounds
.
Round
,
ephemeral
.
Id
,
error
)
{
fingerprint
,
service
,
payload
,
mac
,
err
:=
assembler
(
42
)
if
err
!=
nil
{
...
...
@@ -88,7 +88,7 @@ func (m *mockCmix) SendWithAssembler(recipient *id.ID, assembler cmix.MessageAss
p
.
Process
(
msg
,
receptionID
.
EphemeralIdentity
{},
rounds
.
Round
{})
}
return
0
,
ephemeral
.
Id
{},
nil
return
rounds
.
Round
{}
,
ephemeral
.
Id
{},
nil
}
func
(
m
*
mockCmix
)
Send
(
recipient
*
id
.
ID
,
fingerprint
format
.
Fingerprint
,
...
...
This diff is collapsed.
Click to expand it.
e2e/utils_test.go
+
3
−
3
View file @
20d4ec79
...
...
@@ -193,15 +193,15 @@ func (m *mockCmix) Send(_ *id.ID, fp format.Fingerprint, srv message.Service,
if
m
.
handler
.
processorMap
[
fp
]
!=
nil
{
m
.
handler
.
processorMap
[
fp
]
.
Process
(
msg
,
receptionID
.
EphemeralIdentity
{},
rounds
.
Round
{})
return
0
,
ephemeral
.
Id
{},
nil
return
rounds
.
Round
{}
,
ephemeral
.
Id
{},
nil
}
else
if
m
.
handler
.
serviceMap
[
srv
.
Tag
]
!=
nil
{
m
.
handler
.
serviceMap
[
srv
.
Tag
]
.
Process
(
msg
,
receptionID
.
EphemeralIdentity
{},
rounds
.
Round
{})
return
0
,
ephemeral
.
Id
{},
nil
return
rounds
.
Round
{}
,
ephemeral
.
Id
{},
nil
}
m
.
t
.
Errorf
(
"No processor found for fingerprint %s"
,
fp
)
return
0
,
ephemeral
.
Id
{},
return
rounds
.
Round
{}
,
ephemeral
.
Id
{},
errors
.
Errorf
(
"No processor found for fingerprint %s"
,
fp
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment